[library-web] ignore files that do not look like version numbers in directory listings
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] ignore files that do not look like version numbers in directory listings
- Date: Fri, 10 Jun 2011 06:42:52 +0000 (UTC)
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]