fix building of platform specific deb packages

This commit is contained in:
Antonio SJ Musumeci 2016-03-01 00:19:05 -05:00
parent b93783ede0
commit f4a4cc5812

View File

@ -97,9 +97,10 @@ def main():
if args.codename == '::guess::': if args.codename == '::guess::':
args.codename = guess_codename() args.codename = guess_codename()
versuffix = "~"+args.distro+"-"+args.codename
if args.version == '::guess::': if args.version == '::guess::':
ver = git_version() args.version = git_version()
args.version = ver+"~"+args.distro+"-"+args.codename
tags = git_tags() tags = git_tags()
@ -111,6 +112,9 @@ def main():
tags = zip(tags,tags) tags = zip(tags,tags)
tags.insert(0,(args.version,'HEAD')) tags.insert(0,(args.version,'HEAD'))
for i in xrange(0,len(tags)):
tags[i] = (tags[i][0] + versuffix,tags[i][1])
tag = tags[0] tag = tags[0]
for prev in tags[1:]: for prev in tags[1:]:
lines = git_log(tag[1],prev[1]) lines = git_log(tag[1],prev[1])