[bitbake-devel] [PATCH 1/2] fetch2/__init__: handle @ in package names

Anders Darander anders at chargestorm.se
Fri Feb 24 20:52:54 UTC 2017


A number of npm packages use @ as a leading chararacter.
Examples are most of the angular2 packages.

Signed-off-by: Anders Darander <anders at chargestorm.se>
---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 70387f5..760e24f 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -356,7 +356,7 @@ def decodeurl(url):
     user, password, parameters).
     """
 
-    m = re.compile('(?P<type>[^:]*)://((?P<user>[^/]+)@)?(?P<location>[^;]+)(;(?P<parm>.*))?').match(url)
+    m = re.compile('(?P<type>[^:]*)://((?P<user>[^/;]+)@)?(?P<location>[^;]+)(;(?P<parm>.*))?').match(url)
     if not m:
         raise MalformedUrl(url)
 
-- 
2.10.2




More information about the bitbake-devel mailing list