From 2995ef1e25ed96bb79bd1a262a3578d633cb7a5c Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 20 Oct 2021 06:00:58 +0000 Subject: packageFinder.py: strip out ~ from 'arch' before passing to nattka MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Jakov Smolić Signed-off-by: Sam James --- 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] -- cgit v1.2.3-65-gdbad