From b2db44be90a67db8005fb73024db59e22060bef6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Sep 2019 18:41:52 +0100 Subject: replace subprocess.call with subprocess.Popen in sync code, rework the logic a bit to make it more reliable --- src/frontend/cli/sisyphus-cli.py | 1 + src/frontend/gui/sisyphus-gui.py | 1 + 2 files changed, 2 insertions(+) (limited to 'src/frontend') diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index 7954115..9a389d8 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -3,6 +3,7 @@ import sys from libsisyphus import * +checkSync() setJobs.__wrapped__() #undecorate pkgList = sys.argv[2:] diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index cc55567..bc985e1 100644 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -382,6 +382,7 @@ class MainWorker(QtCore.QObject): @QtCore.pyqtSlot() def startUpdate(self): self.started.emit() + checkSync() setJobs.__wrapped__() #undecorate startUpdate.__wrapped__() #undecorate self.finished.emit() -- cgit v1.2.3