summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-07 09:25:11 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-07 09:25:11 +0000
commit559a522dc3b2c7251cee8933819f729a5aeec46d (patch)
tree9d716fcd85b6f8d65ffe976ba787ce81b6573012
parent9d46f762e578c10323d486716ae2ed246b6d551a (diff)
downloadpoky-559a522dc3b2c7251cee8933819f729a5aeec46d.tar.gz
base.bbclass: Add automatic osc-native dependencies for osc:// recipes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5425 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/classes/base.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 975112b6b1..3334961c28 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -1000,6 +1000,13 @@ def base_after_parse(d):
1000 depends = depends + " git-native:do_populate_staging" 1000 depends = depends + " git-native:do_populate_staging"
1001 bb.data.setVarFlag('do_fetch', 'depends', depends, d) 1001 bb.data.setVarFlag('do_fetch', 'depends', depends, d)
1002 1002
1003 # OSC packages should DEPEND on osc-native
1004 srcuri = bb.data.getVar('SRC_URI', d, 1)
1005 if "osc://" in srcuri:
1006 depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
1007 depends = depends + " osc-native:do_populate_staging"
1008 bb.data.setVarFlag('do_fetch', 'depends', depends, d)
1009
1003 # bb.utils.sha256_file() will fail if hashlib isn't present, so we fallback 1010 # bb.utils.sha256_file() will fail if hashlib isn't present, so we fallback
1004 # on shasum-native. We need to ensure that it is staged before we fetch. 1011 # on shasum-native. We need to ensure that it is staged before we fetch.
1005 if bb.data.getVar('PN', d, True) != "shasum-native": 1012 if bb.data.getVar('PN', d, True) != "shasum-native":