Unverified Commit 3cee7f0c authored by Maxim Baz's avatar Maxim Baz
Browse files

Fix order of args when calling vercmp

parent 0ba0c07d
......@@ -160,7 +160,7 @@ async def main() -> int:
if pkgbase in meta[repo]:
curver = meta[repo][pkgbase]["version"]
newver = pkgbases[repo][pkgbase]["version"]
if pyalpm.vercmp(curver, newver) < 1:
if pyalpm.vercmp(newver, curver) < 1:
raise RuntimeError(
f"Cannot update package '{pkgbase}' from version '{curver}' to '{newver}', version is not increased"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment