From 429ef7068dc2ba5722cbd4bd7c39d2da24eaa279 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Sun, 26 Jul 2009 22:58:48 +0530 Subject: Clean up the way we ignore perl bindings Perl bindings don't have a 'latest' version field because they are hosted on different infrastructure from the rest of GNOME. This commit cleans up the way these are handled (checks the language of the binding rather than depending on the package name, which broke with the introduction of the Pango module). --- modules/gnome_module.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gnome_module.py b/modules/gnome_module.py index 9df1246..b7b79b0 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -42,13 +42,13 @@ class GNOME: ret = [] for line in f.readlines(): - components = line.split(':') + components = str.strip(line).split(':') if len(components) == 4 and len(components[2]) > 0: # Upper modules category handling determination currently sucks - manually ignore modules that aren't unique $name if components[1] not in ('gdl'): - # Very hacky temporary way to ignore perl packages that don't have versions known in version-stable due to different infrastructure for hosting + # 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[1][0] == 'G'): + if not(components[0] == 'bindings' and components[3] == 'perl'): ret.append(package_module.Package(components[1] + "-" + components[2])) f.close() -- cgit v1.2.3-65-gdbad