[bitbake-devel,v2,3/3] fetch2: Remove mirrortarball check from uri_replace

Submitted by Jason Wessel on June 14, 2012, 9:44 p.m.


Message ID 1339710244-6755-4-git-send-email-jason.wessel@windriver.com
State New
Headers show

Commit Message

Jason Wessel June 14, 2012, 9:44 p.m.
It does not appear as if any additional fetch2 class
uses the mirrortarball.  Future classes can
assign a class instance to mirrorcheck that implements
getbasename() to return mirrortarball.

The git fetch2 class demonstrates how this works.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
 lib/bb/fetch2/__init__.py |    2 --
 1 file changed, 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 1bd4ee4..bd51864 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -203,8 +203,6 @@  def uri_replace(ud, uri_find, uri_replace, d):
                     basename = None
                     if ud.mirrorcheck:
                         basename = ud.mirrorcheck.getbasename(ud, result_decoded[0], result_decoded[loc])
-                    elif ud.mirrortarball:
-                        basename = os.path.basename(ud.mirrortarball)
                     elif ud.localpath:
                         basename = os.path.basename(ud.localpath)
                     if basename and result_decoded[loc].endswith("/"):