From 9d7f8e2a206f8266fd0766b6161dbd1bf6b787a7 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 19 Nov 2013 14:32:08 +0000 Subject: bitbake: fetch2: Stop passing around the pointless url parameter There is no good reason to keep passing around the url parameter when its contained within urldata (ud). This is left around due to legacy reasons, some functions take it, some don't and its time to cleanup. This is fetcher internal API, there are a tiny number of external users of the internal API (buildhistory and distrodata) which can be fixed up after this change. (Bitbake rev: 6a48474de9505a3700863f31839a7c53c5e18a8d) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/repo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/fetch2/repo.py') diff --git a/bitbake/lib/bb/fetch2/repo.py b/bitbake/lib/bb/fetch2/repo.py index 8300da8c5a..21678eb7d9 100644 --- a/bitbake/lib/bb/fetch2/repo.py +++ b/bitbake/lib/bb/fetch2/repo.py @@ -31,7 +31,7 @@ from bb.fetch2 import runfetchcmd class Repo(FetchMethod): """Class to fetch a module or modules from repo (git) repositories""" - def supports(self, url, ud, d): + def supports(self, ud, d): """ Check to see if a given url can be fetched with repo. """ @@ -53,7 +53,7 @@ class Repo(FetchMethod): ud.localfile = data.expand("repo_%s%s_%s_%s.tar.gz" % (ud.host, ud.path.replace("/", "."), ud.manifest, ud.branch), d) - def download(self, loc, ud, d): + def download(self, ud, d): """Fetch url""" if os.access(os.path.join(data.getVar("DL_DIR", d, True), ud.localfile), os.R_OK): @@ -91,8 +91,8 @@ class Repo(FetchMethod): def supports_srcrev(self): return False - def _build_revision(self, url, ud, d): + def _build_revision(self, ud, d): return ud.manifest - def _want_sortable_revision(self, url, ud, d): + def _want_sortable_revision(self, ud, d): return False -- cgit v1.2.3-54-g00ecf