[oe] Ignore externals from a SVN source in SRC_URI

Francois Retief fgretief at gmail.com
Mon Apr 4 07:51:50 UTC 2011


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)






More information about the Openembedded-devel mailing list