diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 914553aaf7..5f0e6c9266 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
| @@ -327,7 +327,7 @@ class URI(object): | |||
| 327 | def path(self, path): | 327 | def path(self, path): |
| 328 | self._path = path | 328 | self._path = path |
| 329 | 329 | ||
| 330 | if re.compile("^/").match(path): | 330 | if not path or re.compile("^/").match(path): |
| 331 | self.relative = False | 331 | self.relative = False |
| 332 | else: | 332 | else: |
| 333 | self.relative = True | 333 | self.relative = True |
| @@ -375,9 +375,12 @@ def decodeurl(url): | |||
| 375 | if locidx != -1 and type.lower() != 'file': | 375 | if locidx != -1 and type.lower() != 'file': |
| 376 | host = location[:locidx] | 376 | host = location[:locidx] |
| 377 | path = location[locidx:] | 377 | path = location[locidx:] |
| 378 | else: | 378 | elif type.lower() == 'file': |
| 379 | host = "" | 379 | host = "" |
| 380 | path = location | 380 | path = location |
| 381 | else: | ||
| 382 | host = location | ||
| 383 | path = "" | ||
| 381 | if user: | 384 | if user: |
| 382 | m = re.compile('(?P<user>[^:]+)(:?(?P<pswd>.*))').match(user) | 385 | m = re.compile('(?P<user>[^:]+)(:?(?P<pswd>.*))').match(user) |
| 383 | if m: | 386 | if m: |
