fix handling of packages without dev revisions

This commit is contained in:
ndparker 2015-10-11 15:19:51 +02:00
parent 5f18f79207
commit c7ec74ca0a
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'],