summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-17 15:04:42 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:41 +0000
commitb7d667f25283cddf8ff4fc9e35425a884a9f527e (patch)
tree0432530c13fd724af4a2a6371d21d1de5278c423 /bitbake/lib
parent87b6f7d27ace9d6465414c28bbba003f368a49dd (diff)
downloadopenembedded-core-b7d667f25283cddf8ff4fc9e35425a884a9f527e.tar.gz
openembedded-core-b7d667f25283cddf8ff4fc9e35425a884a9f527e.tar.bz2
openembedded-core-b7d667f25283cddf8ff4fc9e35425a884a9f527e.tar.xz
openembedded-core-b7d667f25283cddf8ff4fc9e35425a884a9f527e.zip
fetch: use os.path.join
(Bitbake rev: c360b01df18d90a513a3d61d395f905102e7568e) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index c9c8bdb89..18775301a 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -136,7 +136,7 @@ def uri_replace(uri, uri_find, uri_replace, d):
if d:
localfn = bb.fetch.localpath(uri, d)
if localfn:
- result_decoded[loc] = os.path.dirname(result_decoded[loc]) + "/" + os.path.basename(bb.fetch.localpath(uri, d))
+ result_decoded[loc] = os.path.join(os.path.dirname(result_decoded[loc]), os.path.basename(bb.fetch.localpath(uri, d)))
else:
return uri
return encodeurl(result_decoded)