base.bbclass: depend on mercurial-native if SRC_URI contains hg://
authorEric BENARD <eric@eukrea.com>
Mon, 6 Sep 2010 11:41:50 +0000 (11:41 +0000)
committerKhem Raj <raj.khem@gmail.com>
Thu, 21 Oct 2010 01:30:27 +0000 (18:30 -0700)
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
classes/base.bbclass

index c5148d7..d4d8257 100644 (file)
@@ -372,6 +372,11 @@ python () {
         depends = depends + " git-native:do_populate_sysroot"
         bb.data.setVarFlag('do_fetch', 'depends', depends, d)
 
+    if "hg://" in srcuri:
+        depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
+        depends = depends + " mercurial-native:do_populate_sysroot"
+        bb.data.setVarFlag('do_fetch', 'depends', depends, d)
+
     # unzip-native should already be staged before unpacking ZIP recipes
     need_unzip = bb.data.getVar('NEED_UNZIP_FOR_UNPACK', d, 1)
     src_uri = bb.data.getVar('SRC_URI', d, 1)