diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-08-03 16:49:23 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-08-03 16:49:23 +0000 |
commit | 54060c2fe137390a12bd54d56f67c2999c06c64d (patch) | |
tree | a27ab4875d7b644706eaa9bd5fdde4b7c2942428 /classes | |
parent | 38ddcd6d8a585ad7da6db319518c6b55a4ddca14 (diff) |
base.bbclass: Add dependency on git-native for git packages
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index a81263a12a..45a0282265 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -820,6 +820,14 @@ def base_after_parse(d): bb.data.delVarFlag('MACHINE', 'export', d) bb.data.setVarFlag('MACHINE', 'unexport', 1, d) + # Git packages should DEPEND on git-native + srcuri = bb.data.getVar('SRC_URI', d, 1) + if "git://" in srcuri: + depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" + depends = depends + " git-native:do_populate_staging" + bb.data.setVarFlag('do_fetch', 'depends', depends, d) + + mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) if (old_arch == mach_arch): |