Minor fix
This commit is contained in:
parent
9e5b5d4d54
commit
9335a43360
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class ArchPkgVersion:
|
||||||
self.versions = []
|
self.versions = []
|
||||||
self.pkgver = 0
|
self.pkgver = 0
|
||||||
end_dash_idx = version_str.rfind("-")
|
end_dash_idx = version_str.rfind("-")
|
||||||
if end_dash_idx != -1:
|
if end_dash_idx != -1 and end_dash_idx + 1 < len(version_str):
|
||||||
try:
|
try:
|
||||||
self.pkgver = int(version_str[end_dash_idx + 1 :])
|
self.pkgver = int(version_str[end_dash_idx + 1 :])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in a new issue