diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-04 21:04:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-04 21:04:15 +0100 |
commit | 41042618cfcecab36abe16108a3685b0dfc2f694 (patch) | |
tree | 4f5fbf49c179329c26b01ce758b0292aa5788d7d /src/backend/libsisyphus.py | |
parent | 0832c95f1d2eb366cf68941a12ac79745094dd2e (diff) |
libsisyphus : fix a race condition && sisyphus-gui : use breeze style if available
Diffstat (limited to 'src/backend/libsisyphus.py')
-rw-r--r-- | src/backend/libsisyphus.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index a23b557..6e91eb8 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -37,8 +37,9 @@ def getMirrorList(): if line.startswith('#'): mirror['isActive'] = False mirrorList.append(mirror) - mirrorFile.close() - return mirrorList + mirrorFile.close() + + return mirrorList def getBinhostURL(): binhostURL = [] @@ -47,6 +48,8 @@ def getBinhostURL(): for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): if "PORTAGE_BINHOST" in portageOutput.rstrip(): binhostURL = str(portageOutput.rstrip().split("=")[1].strip('\"')) + + portageExec.wait() return binhostURL def getCsvUrl(): @@ -62,6 +65,8 @@ def getCsvUrl(): else: remotePkgCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remotePackagesPre.csv') remoteDescCsv = str(portageOutput.rstrip().split("=")[1].strip('\"').replace('packages', 'csv') + 'remoteDescriptionsPre.csv') + + portageExec.wait() return remotePkgCsv,remoteDescCsv @animation.wait('resolving dependencies') @@ -92,6 +97,8 @@ def getPackageDeps(pkgList): if "ebuild" in portageOutput.rstrip(): isSource = str(portageOutput.rstrip().split("]")[1].split("[")[0].strip("\ ")) areSources.append(isSource) + + portageExec.wait() return areBinaries,areSources,needsConfig @animation.wait('resolving dependencies') @@ -122,6 +129,8 @@ def getWorldDeps(): if "ebuild" in portageOutput.rstrip(): isSource = str(portageOutput.rstrip().split("]")[1].split("[")[0].strip("\ ")) areSources.append(isSource) + + portageExec.wait() return areBinaries,areSources,needsConfig def fetchRemoteDatabase(): |