aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-20 06:00:58 +0000
committerSam James <sam@gentoo.org>2021-10-20 06:01:13 +0000
commit2995ef1e25ed96bb79bd1a262a3578d633cb7a5c (patch)
tree5c3561e9a86aa3e6a7eb0298d98ae4a5804d43d9
parentinitialize the result var for revdep test scripts (diff)
downloadtatt-2995ef1e25ed96bb79bd1a262a3578d633cb7a5c.tar.gz
tatt-2995ef1e25ed96bb79bd1a262a3578d633cb7a5c.tar.bz2
tatt-2995ef1e25ed96bb79bd1a262a3578d633cb7a5c.zip
packageFinder.py: strip out ~ from 'arch' before passing to nattka
Reported-by: Jakov Smolić <jsmolic@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--tatt/packageFinder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tatt/packageFinder.py b/tatt/packageFinder.py
index fe1256e..4b32b6e 100644
--- a/tatt/packageFinder.py
+++ b/tatt/packageFinder.py
@@ -11,7 +11,7 @@ def findPackages (s, arch, repo, bugnum=False):
if bugnum:
print("Using Nattka to process the bug")
- output = subprocess.check_output(['nattka', '--repo', repo, 'apply', '-a', arch, '-n', bugnum, '--ignore-sanity-check', '--ignore-dependencies'])
+ output = subprocess.check_output(['nattka', '--repo', repo, 'apply', '-a', arch.replace("~", ""), '-n', bugnum, '--ignore-sanity-check', '--ignore-dependencies'])
output = output.decode("utf8").split("\n")
output = [line for line in output if not line.startswith("#")]
output = [line.split(" ")[0] for line in output]