[library-web] Only consider real version directories when looking for modulesets
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Only consider real version directories when looking for modulesets
- Date: Thu, 4 Aug 2011 12:33:51 +0000 (UTC)
commit 3c91a53de29f072c9af00d48a71d3f2d5a26fe3d
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Thu Aug 4 14:33:05 2011 +0200
Only consider real version directories when looking for modulesets
src/lgo.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index a78405c..61ab40c 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -204,9 +204,8 @@ class Lgo(App):
'''Download GNOME releases'''
releases = self.ftp_gnome_org.listdir('pub/GNOME/teams/releng/')
+ releases = [x for x in releases is is_version_number(x)]
for i, r in enumerate(releases[:]):
- if not is_version_number(r):
- continue
if self.config.version_min and version_cmp(r, self.config.version_min) < 0:
continue
if self.config.version_max and version_cmp(r, self.config.version_max) > 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]