mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 07:26:15 +01:00
Fix show_upstream_rev call in checkRevision
If meta=True is passed to checkRevision, the meta parameter is used as a revision in the show_upstream_rev call. Instead, it should be bound to show_upstream_rev's meta parameter.
This commit is contained in:
parent
7b5d105523
commit
b573f02eb4
@ -6689,7 +6689,7 @@ def checkRevision(prj, pac, revision, apiurl=None, meta=False):
|
|||||||
if not apiurl:
|
if not apiurl:
|
||||||
apiurl = conf.config['apiurl']
|
apiurl = conf.config['apiurl']
|
||||||
try:
|
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:
|
or int(revision) <= 0:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user