From 25700e2a7bc4df107b42bd1ab78b0599178b5941 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Tue, 4 Feb 2020 16:48:28 +0100 Subject: 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 --- 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) -- cgit v1.2.3-65-gdbad