summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gnome_module.py')
-rw-r--r--modules/gnome_module.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py
index 38639ee..a9fd306 100644
--- a/modules/gnome_module.py
+++ b/modules/gnome_module.py
@@ -96,9 +96,12 @@ class GNOME:
if pkg.major_minor not in data[3]:
print("Warning: can't find latest version for %s-%s" % (name, pkg.major-minor))
continue
+ major_minor = pkg.major_minor
+ if pkg.major != "0" and pkg.minor.isdigit() and int(pkg.minor) % 2 and "%s.%d" % (pkg.major, int(pkg.minor)+1) in data[3]:
+ major_minor = "%s.%d" % (pkg.major, int(pkg.minor)+1)
latest = False
# Some modules contain more than LATEST-IS-* for some reason, so we need to iterate and find the correct item instead of [0] (even though it is firsy always, but lets be future-proof)
- for tarball in data[3][pkg.major_minor]:
+ for tarball in data[3][major_minor]:
if tarball.startswith('LATEST-IS-'):
latest = tarball[10:] # len('LATEST-IS-') == 10
break