Skip to contentSkip to conversation

bitbake/fetch2: workaround urlparse in older python not support git

PATCH New Matthew McClintock 1 participant 1 message Feb 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake/fetch2: workaround urlparse in older python not support git

---
 bitbake/lib/bb/fetch2/__init__.py |    3 +++
 1 file changed, 3 insertions(+)
bitbake/lib/bb/fetch2/__init__.py +3 -0
index f5b363d..8118fc2 100644
@@ -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
Signature · 1 line
1.7.9.7