diff options
| author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-06-04 04:50:02 (GMT) |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-01 21:32:01 (GMT) |
| commit | ca257adc587bb0937ea76d8b32b654fdbf4192b8 (patch) | |
| tree | c5f5d25ce84ec98d07cfd53c26a79a9b894c7014 | |
| parent | 9c4527fe66690999a6b56efaa56b54a92cd279bf (diff) | |
| download | bitbake-ca257adc587bb0937ea76d8b32b654fdbf4192b8.tar.gz bitbake-ca257adc587bb0937ea76d8b32b654fdbf4192b8.tar.bz2 | |
bitbake decodeurl: fix the file:// url handling
Without this patch decoding a url of this kind file://dir/filename gives
path=/filename host=dir.
With the patch it decodes as path=/dir/filename host=""
Probably nobody stumbled on this issue yet because nobody used
file:// urls with directory names in the path.
(From Poky rev: c3682bf89bdf236a4b4d834069d947b6a1456791)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
| -rw-r--r-- | lib/bb/fetch/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index 40d9661..31b9653 100644 --- a/lib/bb/fetch/__init__.py +++ b/lib/bb/fetch/__init__.py @@ -69,7 +69,7 @@ def decodeurl(url): parm = m.group('parm') locidx = location.find('/') - if locidx != -1: + if locidx != -1 and type.lower() != 'file': host = location[:locidx] path = location[locidx:] else: |
