From 3e315edde07f7392fa40b353445d0bddb721e73f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 19 Dec 2019 00:47:07 +0000 Subject: libsisyphus: fix parser confusion when some package triggers a number of rebuilds --- src/backend/libsisyphus.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/libsisyphus.py') 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) -- cgit v1.2.3