Skip to contentSkip to conversation

fetch2/svn: Add transportuser parameter

PATCH New Richard Purdie 1 participant 1 message Jul 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2/svn: Add transportuser parameter

There may be a need to set the user for the transport rather than the subversion command itself. Add a parameter to the url to allow this.

[YOCTO #6475]

bitbake/lib/bb/fetch2/svn.py +2 -1
index 8847461..1733c2b 100644
@@ -101,7 +101,8 @@ class Svn(FetchMethod):
                 suffix = "@%s" % (ud.revision)
 
             if command == "fetch":
-                svncmd = "%s co %s %s://%s/%s%s %s" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module, suffix, ud.module)
+                transportuser = ud.parm.get("transportuser", "")
+                svncmd = "%s co %s %s://%s%s/%s%s %s" % (ud.basecmd, " ".join(options), proto, transportuser, svnroot, ud.module, suffix, ud.module)
             elif command == "update":
                 svncmd = "%s update %s" % (ud.basecmd, " ".join(options))
             else: