[poky] [PATCH] bitbake/fetch2: Fix typo which broke use of tarballs

Gary Thomas gary at mlbassoc.com
Fri Mar 16 12:30:34 PDT 2012


Signed-off-by: Gary Thomas <gary at mlbassoc.com>
---
 bitbake/lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 6847873..7524fa9 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -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("/"):
-- 
1.7.7.6




More information about the poky mailing list