[bitbake-devel] [PATCH] bitbake/fetch2: workaround urlparse in older python not support git

Matthew McClintock msm at freescale.com
Tue Feb 19 20:20:01 UTC 2013


Signed-off-by: Matthew McClintock <msm at freescale.com>
---
 bitbake/lib/bb/fetch2/__init__.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index f5b363d..8118fc2 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -30,6 +30,9 @@ from __future__ import print_function
 import os, re
 import logging
 import urllib
+import urlparse
+if 'git' not in urlparse.uses_netloc:
+    urlparse.uses_netloc.append('git')
 from urlparse import urlparse
 import operator
 import bb.persist_data, bb.utils
-- 
1.7.9.7






More information about the bitbake-devel mailing list