diff options
Diffstat (limited to 'modules/gnome_module.py')
-rw-r--r-- | modules/gnome_module.py | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py index 6442ab0..1eb2198 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -43,20 +43,17 @@ class GNOME: ret = [] for line in f.readlines(): components = str.strip(line).split(':') - if len(components) == 4 and len(components[2]) > 0: - # Ignore perl packages that don't have versions known in version-stable due to different infrastructure for hosting - # We have a workaround in compare_packages now, but we don't have a proper mapping to ruby-g* stuff yet, so ignore them for now - if (components[0] == 'bindings' and components[3] == 'perl'): - continue - # Skip mobile stuff, because we don't care. And they are mostly dupes anyway - if components[0] == 'mobile': - continue - pkg = package_module.Package(components[1] + "-" + components[2]) - if (pkg.name and pkg.version): - ret.append(pkg) - else: - print "Warning: Ignoring package %s because parsing of its name or version string '%s' failed" % (components[1], components[2]) - + # Skip invalid lines + if len(components) != 4 or len(components[2]) == 0: + continue + # Skip mobile stuff, because we don't care. And they are mostly dupes anyway + if components[0] == 'mobile': + continue + pkg = package_module.Package(components[1] + "-" + components[2]) + if (pkg.name and pkg.version): + ret.append(pkg) + else: + print "Warning: Ignoring package %s because parsing of its name or version string '%s' failed" % (components[1], components[2]) f.close() return ret |