diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2009-08-25 15:19:09 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2009-08-26 00:45:53 +0100 |
commit | 0f2df9e639f5c4aa41f068103dbd5bb7ec9667ad (patch) | |
tree | a67ed4bf88258d2cd9f1aa34215f6bf612a77a1c | |
parent | 65bf6c90e63b67732bda8b4a1c786a605f61c611 (diff) | |
download | openembedded-core-0f2df9e639f5c4aa41f068103dbd5bb7ec9667ad.tar.gz openembedded-core-0f2df9e639f5c4aa41f068103dbd5bb7ec9667ad.tar.bz2 openembedded-core-0f2df9e639f5c4aa41f068103dbd5bb7ec9667ad.zip |
base.bbclass: Don't retrieve SRC_URI when not necessary
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
-rw-r--r-- | meta/classes/base.bbclass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 4f57c3ff4d..0733cddd98 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -1009,15 +1009,13 @@ def base_after_parse(d): bb.data.setVarFlag('do_fetch', 'depends', depends, d) # Mercurial packages should DEPEND on mercurial-native - srcuri = bb.data.getVar('SRC_URI', d, 1) - if "hg://" in srcuri: + elif "hg://" in srcuri: depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" depends = depends + " mercurial-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: + elif "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) |