/[soft]/mga-gnome/trunk/mga-gnome
ViewVC logotype

Diff of /mga-gnome/trunk/mga-gnome

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7106 by ovitters, Wed Jan 16 09:38:29 2013 UTC revision 7107 by ovitters, Wed Jan 16 09:40:29 2013 UTC
# Line 83  def get_latest_version(versions, max_ver Line 83  def get_latest_version(versions, max_ver
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',)),
# Line 95  MAJOR_VERSIONS = { Line 95  MAJOR_VERSIONS = {
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    

Legend:
Removed from v.7106  
changed lines
  Added in v.7107

  ViewVC Help
Powered by ViewVC 1.1.30