From: Ralf Jung Date: Wed, 18 Sep 2013 13:39:19 +0000 (+0200) Subject: Fix determining the dpkg architecture X-Git-Url: https://git.ralfj.de/auto-debuild.git/commitdiff_plain/49195767675bb04a0b42877452049b56a8369820 Fix determining the dpkg architecture --- 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):