diff options
author | Anders Darander <anders@chargestorm.se> | 2017-02-24 21:52:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-24 13:12:48 -0800 |
commit | 628c4bf6c89b3d62c9b864380b5c8e131a899bff (patch) | |
tree | f9aff0d0339dc4fe6d66e65781ff92e48358525b | |
parent | 5b364b02270b0d7c2b7ca8d67fa2731bf93720ee (diff) | |
download | bitbake-628c4bf6c89b3d62c9b864380b5c8e131a899bff.tar.gz |
fetch2/__init__: handle @ in package names
A number of npm packages use @ as a leading chararacter.
Examples are most of the angular2 packages.
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 70387f52d..760e24f03 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) |