commit:     2995ef1e25ed96bb79bd1a262a3578d633cb7a5c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 20 06:00:58 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 20 06:01:13 2021 +0000
URL:        https://gitweb.gentoo.org/proj/tatt.git/commit/?id=2995ef1e

packageFinder.py: strip out ~ from 'arch' before passing to nattka

Reported-by: Jakov Smolić <jsmolic <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

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]

Reply via email to