[banshee] [build] support extracting zip files by default
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [build] support extracting zip files by default
- Date: Thu, 7 Jan 2010 19:11:36 +0000 (UTC)
commit a32e2575157a7915398b2669da129e963441438a
Author: Aaron Bockover <abockover novell com>
Date: Thu Jan 7 14:11:14 2010 -0500
[build] support extracting zip files by default
build/bundle/bockbuild/package.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/build/bundle/bockbuild/package.py b/build/bundle/bockbuild/package.py
index c43b54a..a0a6850 100644
--- a/build/bundle/bockbuild/package.py
+++ b/build/bundle/bockbuild/package.py
@@ -106,7 +106,11 @@ class Package:
def prep (self):
if self.sources == None:
return
- self.sh ('tar xf %{sources[0]}')
+ root, ext = os.path.splitext (self.sources[0])
+ if ext == '.zip':
+ self.sh ('unzip "%{sources[0]}"')
+ else:
+ self.sh ('tar xf "%{sources[0]}"')
self.cd ('%{source_dir_name}')
def build (self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]