diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-19 00:47:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-19 00:47:07 +0000 |
commit | 3e315edde07f7392fa40b353445d0bddb721e73f (patch) | |
tree | 2a4eff70e7aaa7a8dbaad8240d2d87102f7d26eb /src/backend/libsisyphus.py | |
parent | 7d37888ce2ee742217eb20318acb433f53538308 (diff) |
libsisyphus: fix parser confusion when some package triggers a number of rebuilds
Diffstat (limited to 'src/backend/libsisyphus.py')
-rw-r--r-- | src/backend/libsisyphus.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index 356c9cf..e728aee 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -90,11 +90,11 @@ def getPackageDeps(pkgList): needsConfig = int(1) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): - if "binary" in portageOutput.rstrip(): + if "[binary" in portageOutput.rstrip(): isBinary = str(portageOutput.rstrip().split("]")[1].split("[")[0].strip("\ ")) areBinaries.append(isBinary) - if "ebuild" in portageOutput.rstrip(): + if "[ebuild" in portageOutput.rstrip(): isSource = str(portageOutput.rstrip().split("]")[1].split("[")[0].strip("\ ")) areSources.append(isSource) @@ -122,11 +122,11 @@ def getWorldDeps(): needsConfig = int(1) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): - if "binary" in portageOutput.rstrip(): + if "[binary" in portageOutput.rstrip(): isBinary = str(portageOutput.rstrip().split("]")[1].split("[")[0].strip("\ ")) areBinaries.append(isBinary) - if "ebuild" in portageOutput.rstrip(): + if "[ebuild" in portageOutput.rstrip(): isSource = str(portageOutput.rstrip().split("]")[1].split("[")[0].strip("\ ")) areSources.append(isSource) |