From 49195767675bb04a0b42877452049b56a8369820 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 18 Sep 2013 15:39:19 +0200 Subject: [PATCH] Fix determining the dpkg architecture --- auto_debuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_debuild.py b/auto_debuild.py index 410d848..a5fb5bc 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -180,7 +180,7 @@ def getArchitecture(config): with subprocess.Popen(cmd, stdout=subprocess.PIPE) as p: res = p.communicate()[0] # get only stdout if p.returncode != 0: raise Exception("Querying dpkg for the architecture failed") - return res[0:len(res)-1] # chop of the \n at the end + return res.decode('utf-8').strip('\n') # chop of the \n at the end def writeDependency(f, name, list): if len(list): -- 2.30.2