Generate more unique and ordered version numbers for Debian builds

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
This commit is contained in:
István Váradi 2020-03-24 16:41:13 +01:00
parent 56222de768
commit 19a58ed9c8

View file

@ -79,7 +79,9 @@ def collectEntries(baseCommit, baseVersion, kind):
words = line.split("\t")
(commit, name, email, date, revdate) = words[0:5]
subject = "\t".join(words[5:])
revdate = datetime.datetime.utcfromtimestamp(long(revdate)).strftime("%Y%m%d.%H%M%S")
revdate += "." + commit
kind = "beta"
@ -113,6 +115,11 @@ def collectEntries(baseCommit, baseVersion, kind):
entries.append((commit, name, email, date, revdate, subject,
baseVersion, kind))
if entries:
(commit, name, email, date, revdate, subject, baseVersion, kind) = entries[-1]
revdate = datetime.datetime.now().strftime("%Y%m%d.%H%M%S")+ "." + commit
entries[-1] = (commit, name, email, date, revdate, subject, baseVersion, kind)
entries.reverse()
return entries