Patchwork [3/3] base: when using zip files, depend on unzip-native

login
register
mail settings
Submitter Christopher Larson
Date April 5, 2011, 8:39 p.m.
Message ID <cd41608ac54d1aec88d55a2c66eac1dde627c4ff.1302035800.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/1963/
State New, archived
Headers show

Comments

Christopher Larson - April 5, 2011, 8:39 p.m.
From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 meta/classes/base.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 0a1aebf..7a11c9a 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -269,7 +269,9 @@  def set_uri_depends(d):
 	    fetch_depends.add('osc-native')
 
 	root, ext = os.path.splitext(uri.path)
-	if ext == '.xz':
+	if ext == '.zip':
+	    unpack_depends.add('unzip-native')
+	elif ext == '.xz':
 	    unpack_depends.add('xz-native')
 
     fdepends = d.getVarFlag('do_fetch', 'depends') or ''