From 5745759488bd483afc73107ea738ad4bff81aac9 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 21 Mar 2022 00:38:07 +0100 Subject: [PATCH] Altre correzioni alle chiamate. --- loaih/__init__.py | 8 +------- scripts/loaih-build | 5 ++++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/loaih/__init__.py b/loaih/__init__.py index 795b6df..522f114 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -208,16 +208,10 @@ class Build(object): subprocess.run("md5sum {appimage} > {appimage}.md5".format(appimage = appimage), shell=True) - def move(self, outdir): + def move(self): """Moves built versions to definitive storage.""" if self.built: return - if not outdir in self.storage_path: - # Let's create an updated storage_path - if self.portable: - self.storage_path = outdir + '/portable' - else: - self.storage_path = outdir os.chdir(self.appnamedir) subprocess.run("find . -iname '*.AppImage*' -exec cp {} %s \;" % self.storage_path, shell=True) diff --git a/scripts/loaih-build b/scripts/loaih-build index 0ce4031..dfbc13a 100644 --- a/scripts/loaih-build +++ b/scripts/loaih-build @@ -32,10 +32,13 @@ def build(arch, language, offline, portable, updatable, download, storage, check if check: obj.check(storage) + else: + obj.storage_path = storage + obj.download(download) obj.build() obj.checksums() - obj.move(storage) + obj.move() del obj if __name__ == '__main__':