From patchwork Mon Apr 4 07:51:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Ignore externals from a SVN source in SRC_URI Date: Mon, 04 Apr 2011 07:51:50 -0000 From: Francois Retief X-Patchwork-Id: 1903 Message-Id: <4D997896.9050607@gmail.com> To: openembedded-devel@lists.openembedded.org 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 if ud.revision: options.append("-r %s" % ud.revision) 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 = ""