bitbake/fetch2: Fix typo which broke use of tarballs
authorGary Thomas <gary@mlbassoc.com>
Fri, 16 Mar 2012 19:30:34 +0000 (13:30 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Mar 2012 23:44:23 +0000 (23:44 +0000)
(Bitbake rev: 5a1e62a8cdd4f0253b0dc59046b3b4c3186af461)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py

index 6847873..7524fa9 100644 (file)
@@ -192,7 +192,7 @@ def uri_replace(ud, uri_find, uri_replace, d):
                 if uri_find_decoded.index(i) == 2:
                     basename = None
                     if ud.mirrortarball:
-                        basename = os.path.basename(ud.localpath)
+                        basename = os.path.basename(ud.mirrortarball)
                     elif ud.localpath:
                         basename = os.path.basename(ud.localpath)
                     if basename and result_decoded[loc].endswith("/"):