[bitbake-devel] [PATCH v2 3/3] fetch2: Remove mirrortarball check from uri_replace
Jason Wessel
jason.wessel at windriver.com
Thu Jun 14 21:44:04 UTC 2012
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 at windriver.com>
---
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("/"):
--
1.7.10
More information about the bitbake-devel
mailing list