include branch ref in package name

This commit is contained in:
Olivier R-D 2013-04-03 10:39:47 +02:00
parent c9c1becc69
commit 39085a457d

View File

@ -8,13 +8,18 @@ from email.utils import formatdate
DEBVERSION = "0.5"
branch = subprocess.check_output("git rev-parse --abbrev-ref HEAD", shell=True)
branch = branch.decode()
branch = branch.strip()
branch = str(branch).replace("'","")
rev = subprocess.check_output("git log -1 --format=\'%ad--%h\' --date=short", shell=True)
rev = rev.decode()
rev = rev.strip()
rev = str(rev).replace("'","")
rev = rev.replace("'","")
#rev = rev.replace(" ", "T", 1)
#ev = rev.replace(" ", "Z", 1)
vcsstring = "git" + rev
vcsstring = "git-" + branch + "-" + rev
def get_changelog(progname, version, changelog, date):
"""