summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
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 /meta/classes/base.bbclass
parent9d46f762e578c10323d486716ae2ed246b6d551a (diff)
downloadopenembedded-core-559a522dc3b2c7251cee8933819f729a5aeec46d.tar.gz
openembedded-core-559a522dc3b2c7251cee8933819f729a5aeec46d.tar.bz2
openembedded-core-559a522dc3b2c7251cee8933819f729a5aeec46d.zip
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
Diffstat (limited to 'meta/classes/base.bbclass')
-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):
depends = depends + " git-native:do_populate_staging"
bb.data.setVarFlag('do_fetch', 'depends', depends, d)
+ # OSC packages should DEPEND on osc-native
+ srcuri = bb.data.getVar('SRC_URI', d, 1)
+ if "osc://" in srcuri:
+ depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
+ depends = depends + " osc-native:do_populate_staging"
+ bb.data.setVarFlag('do_fetch', 'depends', depends, d)
+
# bb.utils.sha256_file() will fail if hashlib isn't present, so we fallback
# on shasum-native. We need to ensure that it is staged before we fetch.
if bb.data.getVar('PN', d, True) != "shasum-native":