aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2020-02-04 16:48:28 +0100
committerRolf Eike Beer <eike@sf-mail.de>2020-02-04 16:48:28 +0100
commit25700e2a7bc4df107b42bd1ab78b0599178b5941 (patch)
tree0636d51eb8f31da5590e324c933b50209a6fd5ea
parentcollect more test logs (diff)
downloadtatt-25700e2a7bc4df107b42bd1ab78b0599178b5941.tar.gz
tatt-25700e2a7bc4df107b42bd1ab78b0599178b5941.tar.bz2
tatt-25700e2a7bc4df107b42bd1ab78b0599178b5941.zip
also match ~arch in package list
This isn't uncommon for keywording bugs. It is also accepted for stabilization bugs at the moment because it simplifies the code. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
-rw-r--r--tatt/packageFinder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tatt/packageFinder.py b/tatt/packageFinder.py
index 5a8a099..a404d39 100644
--- a/tatt/packageFinder.py
+++ b/tatt/packageFinder.py
@@ -13,7 +13,8 @@ def findPackages (s, arch):
if not line:
continue
atom, _, arches = line.replace('\t', ' ').partition(' ')
- if not arches or arch in arches.split(' '):
+ archlist = arches.split(' ')
+ if not arches or arch in archlist or ('~' + arch) in archlist:
packages.append(gP(atom))
return(packages)