]> git.seodisparate.com - AnotherAURHelper/commitdiff
Minor fix
authorStephen Seo <seo.disparate@gmail.com>
Sat, 4 Feb 2023 07:57:43 +0000 (16:57 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 4 Feb 2023 07:57:43 +0000 (16:57 +0900)
update.py

index 4c8a0f2b18090096112cc97deec4d95196a5e324..31719f3757e833ca7a4290e4eebcfc697c1b760e 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -32,7 +32,7 @@ class ArchPkgVersion:
         self.versions = []
         self.pkgver = 0
         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:
                 self.pkgver = int(version_str[end_dash_idx + 1 :])
             except ValueError: