From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 2/2] base.bbclass: depend on mercurial-native if SRC_URI contains hg://
Date: Mon, 6 Sep 2010 23:41:50 +0200 [thread overview]
Message-ID: <1283809310-29893-2-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <1283809310-29893-1-git-send-email-eric@eukrea.com>
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
classes/base.bbclass | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 299e875..2e6fb84 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -367,6 +367,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)
--
1.6.3.3
next prev parent reply other threads:[~2010-09-06 21:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 21:41 [PATCH 1/2] mercurial-native: add recipe Eric Bénard
2010-09-06 21:41 ` Eric Bénard [this message]
2010-09-07 6:27 ` Frans Meulenbroeks
2010-09-07 6:29 ` Graeme Gregory
2010-09-07 8:07 ` Eric Bénard
2010-09-07 9:32 ` [PATCH v2] " Eric Bénard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1283809310-29893-2-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.