From patchwork Thu Jun 14 21:44:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, v2, 3/3] fetch2: Remove mirrortarball check from uri_replace Date: Thu, 14 Jun 2012 21:44:04 -0000 From: Jason Wessel X-Patchwork-Id: 29903 Message-Id: <1339710244-6755-4-git-send-email-jason.wessel@windriver.com> To: 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 --- lib/bb/fetch2/__init__.py | 2 -- 1 file changed, 2 deletions(-) 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("/"):