From 559a522dc3b2c7251cee8933819f729a5aeec46d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 Oct 2008 09:25:11 +0000 Subject: 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 --- meta/classes/base.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) 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": -- cgit v1.2.3