From 741f675d2191b29805041fb84f204dd935020a0b Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sun, 28 Feb 2010 10:48:29 +0200 Subject: Skip packages from mobile category. Most of the mobile category contains duplicates anyway. --- modules/gnome_module.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/gnome_module.py b/modules/gnome_module.py index ec98b93..6442ab0 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -46,12 +46,16 @@ class GNOME: 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 not(components[0] == 'bindings' and components[3] == 'perl'): - 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]) + 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]) f.close() return ret -- cgit v1.2.3-65-gdbad