[library-web] fix getting modules available as .tar.bz2, not .tar.xz



commit 5433599170e398658c4895b9afc3b3b48546a837
Author: Frédéric Péters <fpeters 0d be>
Date:   Sun Nov 9 21:07:01 2014 +0100

    fix getting modules available as .tar.bz2, not .tar.xz

 src/lgo.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index 45bb92c..e06e862 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -417,13 +417,13 @@ class Lgo(App):
                         continue
 
                 base_version_href = '%s%s/' % (base_module_href, version_dir)
-                filenames = self.ftp_gnome_org.listdir(base_version_href)
-                filenames = [x for x in filenames if \
+                potential_filenames = self.ftp_gnome_org.listdir(base_version_href)
+                filenames = [x for x in potential_filenames if \
                             x.startswith(module + '-%s.' % version_dir) and \
                              x.endswith('.tar.xz')]
                 if not filenames:
                     # not .xz, fallback to .bz2
-                    filenames = [x for x in filenames if \
+                    filenames = [x for x in potential_filenames if \
                                  x.startswith(module + '-%s.' % version_dir) and \
                                  x.endswith('.tar.bz2')]
                 def filenames_cmp(x, y):


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