[library-web] make it possible to rebuild from a renamed tarball
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] make it possible to rebuild from a renamed tarball
- Date: Sun, 26 Jan 2014 09:31:11 +0000 (UTC)
commit d59a4d87a019c9be34d4089b89302de392c54f67
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Jan 26 09:30:35 2014 +0000
make it possible to rebuild from a renamed tarball
src/lgo.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index 2fe9d28..5421485 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -456,6 +456,8 @@ class Lgo(App):
mtime = os.stat(filename)[stat.ST_MTIME]
tarball_name = os.path.splitext(os.path.splitext(os.path.basename(filename))[0])[0]
+ if '__' in tarball_name: # taken from local cache
+ tarball_name = tarball_name.split('__')[-1]
tarname_without_minor = re.match(r'(.*)\.\d+', tarball_name).groups()[0]
# Step 0: remove old occurences of module extracts
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]