[library-web] do not try to download tarballs we didn't find
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [library-web] do not try to download tarballs we didn't find
- Date: Wed, 26 Aug 2009 15:04:23 +0000 (UTC)
commit 8e1266a9e718e4de43bf51aa6b6174fff5f3bc00
Author: Frédéric Péters <fpeters 0d be>
Date: Wed Aug 26 17:03:58 2009 +0200
do not try to download tarballs we didn't find
src/lgo.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index d95f906..35757c6 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -282,6 +282,8 @@ class Lgo(App):
def filenames_cmp(x, y):
return version_cmp(x[len(module)+1:-8], y[len(module)+1:-8])
filenames.sort(filenames_cmp)
+ if not filenames:
+ continue
version_href = '%s%s/%s' % (
base_module_href, version_dir, filenames[-1])
extra_filenames.append(self.ftp_gnome_org.download(version_href)[0])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]