summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <ovitters@mageia.org>2013-01-16 09:40:29 +0000
committerOlav Vitters <ovitters@mageia.org>2013-01-16 09:40:29 +0000
commitcb29b72786abc25da815b37098e097f1478308f0 (patch)
tree1d32022db60c0c7f2d5e0814d5599052be8e35b0
parentc157255cf6cd2119930647c9c8b3ca8c4e264e7e (diff)
downloadmgagnome-cb29b72786abc25da815b37098e097f1478308f0.tar
mgagnome-cb29b72786abc25da815b37098e097f1478308f0.tar.gz
mgagnome-cb29b72786abc25da815b37098e097f1478308f0.tar.bz2
mgagnome-cb29b72786abc25da815b37098e097f1478308f0.tar.xz
mgagnome-cb29b72786abc25da815b37098e097f1478308f0.zip
just lower case everything
-rwxr-xr-xmgagnome6
1 files changed, 3 insertions, 3 deletions
diff --git a/mgagnome b/mgagnome
index c913d70..6b19aee 100755
--- a/mgagnome
+++ b/mgagnome
@@ -83,7 +83,7 @@ def get_latest_version(versions, max_version=None):
return latest
MAJOR_VERSIONS = {
- 'NetworkManager': set(('0.9',)),
+ # NAMES MUST BE IN LOWERCASE!
'networkmanager': set(('0.9',)),
'networkmanager-applet': set(('0.9',)),
'networkmanager-openconnect': set(('0.9',)),
@@ -95,8 +95,8 @@ MAJOR_VERSIONS = {
def get_majmin(version, module=None):
nrs = version.split('.')
- if module and module in MAJOR_VERSIONS:
- module_versions = [version.split(".") for version in MAJOR_VERSIONS[module]]
+ if module and module.lower() in MAJOR_VERSIONS:
+ module_versions = [version.split(".") for version in MAJOR_VERSIONS[module.lower()]]
nrstest = nrs[:]