[library-web] add fallback from xz to bz2 as webapps python doesn't support xz
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] add fallback from xz to bz2 as webapps python doesn't support xz
- Date: Thu, 4 Aug 2011 19:20:13 +0000 (UTC)
commit dd080a35c23c157ee43971516bfc147a00aa78e3
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Thu Aug 4 21:19:31 2011 +0200
add fallback from xz to bz2 as webapps python doesn't support xz
src/lgo.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index 8f02d13..cba7992 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -366,6 +366,10 @@ class Lgo(App):
href.startswith('http://ftp.gnome.org/')):
continue
filename = self.download(href)
+ # FIXME: there's no support for .xz on the webapps vm used for
+ # library-web, fallback to the .bz2 archive.
+ if filename.endswith('.xz'):
+ filename = os.path.splitext(filename)[0] + '.bz2'
if not filename:
continue
logging.info('extracting module %s (from %s moduleset)' % (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]