diff options
author | Richard Purdie <richard@openedhand.com> | 2007-08-03 14:28:42 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-08-03 14:28:42 +0000 |
commit | 4c75040fc6079612f0eaad6c6c156857fcf7f100 (patch) | |
tree | 9e4b8ee774cc7bedccd4951bccf687a70e8bd530 /meta/classes | |
parent | 09bd1175b2c11a5184668c3584ab3ec8b65a6e51 (diff) | |
download | poky-4c75040fc6079612f0eaad6c6c156857fcf7f100.tar.gz |
base.bbclass: Auto add dependency on git-native when needed
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2349 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index f51e0b5586..b1bf0b5697 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -718,6 +718,13 @@ def base_after_parse(d): | |||
718 | bb.data.delVarFlag('DISTRO', 'export', d) | 718 | bb.data.delVarFlag('DISTRO', 'export', d) |
719 | bb.data.setVarFlag('DISTRO', 'unexport', 1, d) | 719 | bb.data.setVarFlag('DISTRO', 'unexport', 1, d) |
720 | 720 | ||
721 | # Git packages should DEPEND on git-native | ||
722 | srcuri = bb.data.getVar('SRC_URI', d, 1) | ||
723 | if "git://" in srcuri: | ||
724 | depends = bb.data.getVar('DEPENDS', d, 1) | ||
725 | depends = depends + " git-native" | ||
726 | bb.data.setVar('DEPENDS', depends, d) | ||
727 | |||
721 | mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) | 728 | mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) |
722 | old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) | 729 | old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) |
723 | if (old_arch == mach_arch): | 730 | if (old_arch == mach_arch): |