From b573f02eb419f609c22ba7200c30b4749065e677 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Tue, 13 Oct 2020 19:29:19 +0200 Subject: [PATCH] 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. --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index fd2c1a48..2045d003 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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: