Import some fixes from resolver branch.

This commit is contained in:
Jelmer Vernooij 2021-02-22 17:17:12 +00:00
parent a411b4dc38
commit 95f5bc2a4c
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8
8 changed files with 93 additions and 21 deletions

View file

@ -61,13 +61,11 @@ def changes_filename(package, version, arch):
def get_build_architecture():
try:
return (
subprocess.check_output(["dpkg-architecture", "-qDEB_BUILD_ARCH"])
.strip()
.decode()
)
return subprocess.check_output(
['dpkg-architecture', '-qDEB_BUILD_ARCH']).strip().decode()
except subprocess.CalledProcessError as e:
raise Exception("Could not find the build architecture: %s" % e)
raise Exception(
"Could not find the build architecture: %s" % e)
def add_dummy_changelog_entry(