upgrading debian files to compat 11

works on buster

Change-Id: I700ec073d3c13ce684cf361f7c3b059e79901bae
This commit is contained in:
Enrico Faulhaber
2019-09-27 13:44:49 +02:00
parent 4bd9486d5f
commit eee7307818
9 changed files with 49 additions and 156 deletions

View File

@ -37,11 +37,13 @@ GIT_REPO = os.path.join(os.path.dirname(__file__), '..', '.git')
def get_git_version(abbrev=4, cwd=None):
try:
print("REPO:", GIT_REPO)
p = Popen(['git', '--git-dir=%s' % GIT_REPO,
'describe', '--abbrev=%d' % abbrev],
stdout=PIPE, stderr=PIPE)
stdout, _stderr = p.communicate()
version = stdout.strip().decode('utf-8', 'ignore')
print("git:", version)
# mangle version to comply with pep440
if version.count('-'):
version, patchcount, githash = version.split('-')