[banshee] [build] support extracting zip files by default



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]