83 |
return latest |
return latest |
84 |
|
|
85 |
MAJOR_VERSIONS = { |
MAJOR_VERSIONS = { |
86 |
'NetworkManager': set(('0.9',)), |
# NAMES MUST BE IN LOWERCASE! |
87 |
'networkmanager': set(('0.9',)), |
'networkmanager': set(('0.9',)), |
88 |
'networkmanager-applet': set(('0.9',)), |
'networkmanager-applet': set(('0.9',)), |
89 |
'networkmanager-openconnect': set(('0.9',)), |
'networkmanager-openconnect': set(('0.9',)), |
95 |
def get_majmin(version, module=None): |
def get_majmin(version, module=None): |
96 |
nrs = version.split('.') |
nrs = version.split('.') |
97 |
|
|
98 |
if module and module in MAJOR_VERSIONS: |
if module and module.lower() in MAJOR_VERSIONS: |
99 |
module_versions = [version.split(".") for version in MAJOR_VERSIONS[module]] |
module_versions = [version.split(".") for version in MAJOR_VERSIONS[module.lower()]] |
100 |
|
|
101 |
nrstest = nrs[:] |
nrstest = nrs[:] |
102 |
|
|