fix handling of packages without dev revisions

This commit is contained in:
ndparker 2015-10-11 15:19:19 +02:00
parent 1477189b9a
commit 54761bbd13
2 changed files with 4 additions and 0 deletions

View File

@ -369,6 +369,8 @@ def run(config=('package.cfg',), ext=None, script_args=None, manifest_only=0):
revision = pkg.get('version.revision', '').strip()
if revision:
revision = int(revision)
else:
revision = 0
kwargs = {
'name': pkg['name'],

View File

@ -374,6 +374,8 @@ def run(config=('package.cfg',), ext=None, script_args=None, manifest_only=0):
revision = pkg.get('version.revision', '').strip()
if revision:
revision = int(revision)
else:
revision = 0
kwargs = {
'name': pkg['name'],