From: Bernhard Reutner-Fischer Date: Wed, 17 Nov 2010 14:04:42 +0000 (+0100) Subject: fetch: use os.path.join X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c360b01df18d90a513a3d61d395f905102e7568e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git fetch: use os.path.join Signed-off-by: Bernhard Reutner-Fischer --- diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index da53ad6c4dd..eb930bf2e8b 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)