Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
repod
Commits
3cee7f0c
Unverified
Commit
3cee7f0c
authored
Oct 09, 2019
by
Maxim Baz
Browse files
Fix order of args when calling vercmp
parent
0ba0c07d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbscripts/db-update
View file @
3cee7f0c
...
...
@@ -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
(
cur
ver
,
new
ver
)
<
1
:
if
pyalpm
.
vercmp
(
new
ver
,
cur
ver
)
<
1
:
raise
RuntimeError
(
f
"Cannot update package '
{
pkgbase
}
' from version '
{
curver
}
' to '
{
newver
}
', version is not increased"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment