Skip to contentSkip to conversation

bitbake/fetch2: Fix typo which broke use of tarballs

PATCH In review Gary Thomas 2 participants 2 messages Mar 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake/fetch2: Fix typo which broke use of tarballs

---
 bitbake/lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
bitbake/lib/bb/fetch2/__init__.py +1 -1
index 6847873..7524fa9 100644
@@ -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("/"):
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 10 lines · Gary Thomas
---
 bitbake/lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
bitbake/lib/bb/fetch2/__init__.py +0 -0
index 6847873..7524fa9 100644

bitbake/lib/bb/fetch2/__init__.py def uri_replace(ud, uri_find, uri_replace, d): · line 198

Quoted 8 lines
bitbake/lib/bb/fetch2/__init__.py +1 -1
@@ -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("/"):

Should really go to the bitbake-devel list but merged to master since its a needed fix, thanks.

Cheers,

Richard