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

login
register
mail settings
Submitter Matthew McClintock
Date Feb. 19, 2013, 8:20 p.m.
Message ID <1361305201-15312-1-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/44869/
State New
Headers show

Comments

Matthew McClintock - Feb. 19, 2013, 8:20 p.m.
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 bitbake/lib/bb/fetch2/__init__.py |    3 +++
 1 file changed, 3 insertions(+)

Patch

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