| Submitter | Jason Wessel |
|---|---|
| Date | June 14, 2012, 9:44 p.m. |
| Message ID | <1339710244-6755-4-git-send-email-jason.wessel@windriver.com> |
| Download | mbox | patch |
| Permalink | /patch/29903/ |
| State | New |
| Headers | show |
Comments
Patch
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("/"):
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(-)