All of lore.kernel.org
 help / color / mirror / Atom feed
* Ignore externals from a SVN source in SRC_URI
@ 2011-04-04  7:51 Francois Retief
  2011-04-05  2:44 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Francois Retief @ 2011-04-04  7:51 UTC (permalink / raw)
  To: openembedded-devel

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)





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-05  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-04  7:51 Ignore externals from a SVN source in SRC_URI Francois Retief
2011-04-05  2:44 ` Khem Raj

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.