X-Git-Url: https://git.ralfj.de/auto-debuild.git/blobdiff_plain/2e0776796423039fa487ed36ee9756abf0f5e28d..49195767675bb04a0b42877452049b56a8369820:/auto_debuild.py 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):