diff options
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r-- | bitbake/lib/bb/__init__.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index 77b1255c77..0460c96ff4 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
@@ -283,10 +283,11 @@ def decodeurl(url): | |||
283 | raise MalformedUrl(url) | 283 | raise MalformedUrl(url) |
284 | user = m.group('user') | 284 | user = m.group('user') |
285 | parm = m.group('parm') | 285 | parm = m.group('parm') |
286 | m = re.compile('(?P<host>[^/;]+)(?P<path>/[^;]+)').match(location) | 286 | |
287 | if m: | 287 | locidx = location.find('/') |
288 | host = m.group('host') | 288 | if locidx != -1: |
289 | path = m.group('path') | 289 | host = location[:locidx] |
290 | path = location[locidx:] | ||
290 | else: | 291 | else: |
291 | host = "" | 292 | host = "" |
292 | path = location | 293 | path = location |