From 4c75040fc6079612f0eaad6c6c156857fcf7f100 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 3 Aug 2007 14:28:42 +0000 Subject: 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 --- meta/classes/base.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'meta/classes/base.bbclass') 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): bb.data.delVarFlag('DISTRO', 'export', d) bb.data.setVarFlag('DISTRO', '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.getVar('DEPENDS', d, 1) + depends = depends + " git-native" + bb.data.setVar('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): -- cgit v1.2.3