]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bb.fetch.git: make empty host pass a file uri to git.
authorChris Larson <clarson@kergoth.com>
Fri, 17 Apr 2009 23:13:54 +0000 (23:13 +0000)
committerChris Larson <clarson@kergoth.com>
Fri, 17 Apr 2009 23:13:54 +0000 (23:13 +0000)
Signed-off-by: Tom Rini <trini@embeddedalley.com>
Signed-off-by: Chris Larson <clarson@mvista.com>
lib/bb/fetch/git.py

index ad6919bda5186d48aa1f555aab22ba835c7bef02..8006466cfca270f8f1d719a37bfc084c91badd7b 100644 (file)
@@ -37,9 +37,12 @@ class Git(Fetch):
 
     def localpath(self, url, ud, d):
 
-        ud.proto = "rsync"
         if 'protocol' in ud.parm:
             ud.proto = ud.parm['protocol']
+        elif not ud.host:
+            ud.proto = 'file'
+        else:
+            ud.proto = "rsync"
 
         ud.branch = ud.parm.get("branch", "master")