aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-06-03 21:50:02 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-01 22:32:01 +0100
commitca257adc587bb0937ea76d8b32b654fdbf4192b8 (patch)
treec5f5d25ce84ec98d07cfd53c26a79a9b894c7014 /lib/bb/fetch/__init__.py
parent9c4527fe66690999a6b56efaa56b54a92cd279bf (diff)
downloadbitbake-ca257adc587bb0937ea76d8b32b654fdbf4192b8.tar.gz
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>
Diffstat (limited to 'lib/bb/fetch/__init__.py')
-rw-r--r--lib/bb/fetch/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index 40d966176..31b965379 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: