fetch/svn.py: use username/password when provided in SRC_URI - close OE#1781
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Tue, 23 Jan 2007 22:03:08 +0000 (22:03 +0000)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Tue, 23 Jan 2007 22:03:08 +0000 (22:03 +0000)
Subversion will still ask if self-signed SSL certificate will be used.

lib/bb/fetch/svn.py

index 21be141..120f4f8 100644 (file)
@@ -91,6 +91,12 @@ class Svn(Fetch):
         elif ud.date != "now":
             options.append("-r {%s}" % ud.date)
 
+        if ud.user:
+            options.append("--username %s" % ud.user)
+
+        if ud.pswd:
+            options.append("--password %s" % ud.pswd)
+
         localdata = data.createCopy(d)
         data.setVar('OVERRIDES', "svn:%s" % data.getVar('OVERRIDES', localdata), localdata)
         data.update_data(localdata)