From: Francois Retief <fgretief@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Ignore externals from a SVN source in SRC_URI
Date: Mon, 04 Apr 2011 09:51:50 +0200 [thread overview]
Message-ID: <4D997896.9050607@gmail.com> (raw)
Hello,
What is the recommended way to ignore external directories from a SVN
source? Tried SVNCOOPTS, but it did not work.
So I hacked bitbake for my needs with the patch below. But is there a
better way?
SRC_URI =
"svn://svn.somesite.com/trunk;module=somemodule;externals=ignore;proto=https"
Cheers
Francois
diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py
index ba9f6ab..f22f572 100644
--- a/lib/bb/fetch/svn.py
+++ b/lib/bb/fetch/svn.py
@@ -114,6 +114,12 @@ class Svn(Fetch):
if command is "info":
svncmd = "%s info %s %s://%s/%s/" % (basecmd, "
".join(options), proto, svnroot, ud.module)
else:
+ if "externals" in ud.parm:
+ if ud.parm["externals"] == "ignore":
+ options.append("--ignore-externals")
+ else:
+ raise FetchError("Invalid value for 'externals':
expected 'ignore'")
+
suffix = ""
if ud.revision:
options.append("-r %s" % ud.revision)
next reply other threads:[~2011-04-04 7:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 7:51 Francois Retief [this message]
2011-04-05 2:44 ` Ignore externals from a SVN source in SRC_URI Khem Raj
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=4D997896.9050607@gmail.com \
--to=fgretief@gmail.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.