]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fetch: use os.path.join
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 17 Nov 2010 14:04:42 +0000 (15:04 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 19 Nov 2010 14:59:36 +0000 (15:59 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
lib/bb/fetch/__init__.py

index da53ad6c4ddeceb64120bde4db97fbae1178a6b3..eb930bf2e8ba072af9a7ca1833ef11e533108727 100644 (file)
@@ -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)