aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-17 15:04:42 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-19 15:59:36 +0100
commitc360b01df18d90a513a3d61d395f905102e7568e (patch)
tree7cd6456ef44b4bc2c90e1cc10045396c276a6791 /lib/bb/fetch/__init__.py
parent823a02185ed109054c6c1ae366221aaed0353f24 (diff)
downloadbitbake-c360b01df18d90a513a3d61d395f905102e7568e.tar.gz
fetch: use os.path.join
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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 da53ad6c4..eb930bf2e 100644
--- a/lib/bb/fetch/__init__.py
+++ b/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)