Gentoo Archives: gentoo-commits

From: Rolf Eike Beer <eike@×××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/tatt:master commit in: tatt/
Date: Tue, 04 Feb 2020 15:49:29
Message-Id: 1580831308.25700e2a7bc4df107b42bd1ab78b0599178b5941.dakon@gentoo
1 commit: 25700e2a7bc4df107b42bd1ab78b0599178b5941
2 Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
3 AuthorDate: Tue Feb 4 15:48:28 2020 +0000
4 Commit: Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
5 CommitDate: Tue Feb 4 15:48:28 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/tatt.git/commit/?id=25700e2a
7
8 also match ~arch in package list
9
10 This isn't uncommon for keywording bugs. It is also accepted for stabilization
11 bugs at the moment because it simplifies the code.
12
13 Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de>
14
15 tatt/packageFinder.py | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18 diff --git a/tatt/packageFinder.py b/tatt/packageFinder.py
19 index 5a8a099..a404d39 100644
20 --- a/tatt/packageFinder.py
21 +++ b/tatt/packageFinder.py
22 @@ -13,7 +13,8 @@ def findPackages (s, arch):
23 if not line:
24 continue
25 atom, _, arches = line.replace('\t', ' ').partition(' ')
26 - if not arches or arch in arches.split(' '):
27 + archlist = arches.split(' ')
28 + if not arches or arch in archlist or ('~' + arch) in archlist:
29 packages.append(gP(atom))
30
31 return(packages)