[library-web] ignore files that do not look like version numbers in directory listings



commit 1f4e6164986d6e644a93bacbfbb014b153392362
Author: Frédéric Péters <fpeters 0d be>
Date:   Fri Jun 10 08:42:34 2011 +0200

    ignore files that do not look like version numbers in directory listings

 src/lgo.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index a1a46f2..64de655 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -274,7 +274,8 @@ class Lgo(App):
                 min_version = None
             base_module_href = 'pub/GNOME/sources/%s/' % module
             releases = self.ftp_gnome_org.listdir(base_module_href)
-            releases = [x for x in releases if not (x.endswith('.png') # ignore icons
+            releases = [x for x in releases if is_version_number(x) and
+                                               not (x.endswith('.png') # ignore icons
                                                  or x.endswith('.json'))] # ignore json
             releases.sort(version_cmp)
             extra_filenames = []



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]