1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

Merge branch 'checkRevision_meta_mode' of https://github.com/marcus-h/osc into master

Fix show_upstream_rev call in checkRevision in the meta=True
case.
This commit is contained in:
Marcus Huewe 2020-10-27 01:08:23 +01:00
commit 699827d091

View File

@ -6689,7 +6689,7 @@ def checkRevision(prj, pac, revision, apiurl=None, meta=False):
if not apiurl:
apiurl = conf.config['apiurl']
try:
if int(revision) > int(show_upstream_rev(apiurl, prj, pac, meta)) \
if int(revision) > int(show_upstream_rev(apiurl, prj, pac, meta=meta)) \
or int(revision) <= 0:
return False
else: