[oe] Ignore externals from a SVN source in SRC_URI
Khem Raj
raj.khem at gmail.com
Tue Apr 5 02:44:20 UTC 2011
On 4/4/2011 12:51 AM, Francois Retief wrote:
> Hello,
>
> What is the recommended way to ignore external directories from a SVN
> source? Tried SVNCOOPTS, but it did not work.
>
yes it could mislead thats why. Since it wont update external svn repos
when you change SRCREV it will give false information of updating all
thats checked out.
> So I hacked bitbake for my needs with the patch below. But is there a
> better way?
>
This seems ok
> 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)
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list