Revision 36860fc2
b/devflow/versioning.py | ||
---|---|---|
299 | 299 |
|
300 | 300 |
""" |
301 | 301 |
version = pyver.replace("_", "~").replace("rc", "~rc") |
302 |
minor = str(get_revision(version)) |
|
303 | 302 |
codename = utils.get_distribution_codename() |
303 |
minor = str(get_revision(version, codename)) |
|
304 | 304 |
return version + "-" + minor + "~" + codename |
305 | 305 |
|
306 | 306 |
|
307 |
def get_revision(version): |
|
307 |
def get_revision(version, codename):
|
|
308 | 308 |
"""Find revision for a debian version""" |
309 | 309 |
version_tag = utils.version_to_tag(version) |
310 | 310 |
repo = utils.get_repository() |
311 | 311 |
minor = 1 |
312 | 312 |
while True: |
313 |
tag = "debian/" + version_tag + "-" + str(minor) |
|
313 |
tag = "debian/" + version_tag + "-" + str(minor) + codename
|
|
314 | 314 |
if tag in repo.tags: |
315 | 315 |
minor += 1 |
316 | 316 |
else: |
Also available in: Unified diff