1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 09:36:21 +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:
Marcus Huewe 2020-10-13 19:29:19 +02:00
parent 7b5d105523
commit b573f02eb4

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: