Ignore externals from a SVN source in SRC_URI
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
lib/bb/fetch/svn.py +0 -0
@@ -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)
Quoted 5 lines · Francois Retief
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.
Quoted 3 lines
So I hacked bitbake for my needs with the patch below. But is there a better way?
This seems ok
Quoted 32 lines
SRC_URI= "svn://svn.somesite.com/trunk;module=somemodule;externals=ignore;proto=https"Cheers
Francoislib/bb/fetch/svn.py +6
-0@@ -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
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel