Skip to contentSkip to conversation

Ignore externals from a SVN source in SRC_URI

PATCH Francois Retief 2 participants 2 messages Apr 4, 2011 – Apr 5, 2011

lore
Share & tools
lore
#0 lore raw

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
index ba9f6ab..f22f572 100644
@@ -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)

#1 lore raw
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
Francois

lib/bb/fetch/svn.py +6 -0
index ba9f6ab..f22f572 100644
@@ -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