commit:     25700e2a7bc4df107b42bd1ab78b0599178b5941
Author:     Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
AuthorDate: Tue Feb  4 15:48:28 2020 +0000
Commit:     Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
CommitDate: Tue Feb  4 15:48:28 2020 +0000
URL:        https://gitweb.gentoo.org/proj/tatt.git/commit/?id=25700e2a

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 <AT> sf-mail.de>

 tatt/packageFinder.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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)

Reply via email to