summaryrefslogtreecommitdiff
path: root/src/backend/solvedeps.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-05 23:28:35 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-05 23:28:35 +0100
commitae35005d5af4547d66ec5e0b40eb2a6cf856456e (patch)
tree76fff60e7f3862c8c3feeece1789f69695527314 /src/backend/solvedeps.py
parentcdd5484814c4284304a551e2353d44fa9729c11c (diff)
bugfix (part 2) : https://bugs.redcorelinux.org/show_bug.cgi?id=142
Diffstat (limited to 'src/backend/solvedeps.py')
-rw-r--r--src/backend/solvedeps.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/solvedeps.py b/src/backend/solvedeps.py
index 24d4613..d3e8a3b 100644
--- a/src/backend/solvedeps.py
+++ b/src/backend/solvedeps.py
@@ -37,14 +37,16 @@ def start(pkgname=None):
for p_out in stderr.decode('utf-8').splitlines():
if pkgname:
- if "The short ebuild name" + " " + ', '.join(f'"{package}"' for package in pkgname) + " " + "is ambiguous." in p_out:
+ if any(key in p_out for key in ["short ebuild name",
+ "is ambiguous",
+ "there are no ebuilds to satisfy"]): # likely very fragile
is_vague = int(1)
if any(key in p_out for key in ["The following keyword changes are necessary to proceed:",
"The following mask changes are necessary to proceed:",
"The following USE changes are necessary to proceed:",
"The following REQUIRED_USE flag constraints are unsatisfied:",
- "One of the following masked packages is required to complete your request:"]):
+ "One of the following masked packages is required to complete your request:"]): # likely very fragile
need_cfg = int(1)
for p_out in stdout.decode('utf-8').splitlines():