diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-19 14:32:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-21 17:20:16 +0000 |
commit | 6a48474de9505a3700863f31839a7c53c5e18a8d (patch) | |
tree | 118f3ff841a9ebd9e93bf24bc9571ced36067a5e /lib/bb/fetch2/wget.py | |
parent | 06590cfebbcf6565a17b80cc298e3ecdfaba4656 (diff) | |
download | bitbake-6a48474de9505a3700863f31839a7c53c5e18a8d.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/wget.py')
-rw-r--r-- | lib/bb/fetch2/wget.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index 131016ce8..00732019e 100644 --- a/lib/bb/fetch2/wget.py +++ b/lib/bb/fetch2/wget.py @@ -37,7 +37,7 @@ from bb.fetch2 import runfetchcmd class Wget(FetchMethod): """Class to fetch urls via 'wget'""" - def supports(self, url, ud, d): + def supports(self, ud, d): """ Check to see if a given url can be fetched with wget. """ @@ -58,7 +58,7 @@ class Wget(FetchMethod): ud.localfile = data.expand(urllib.unquote(ud.basename), d) - def download(self, uri, ud, d, checkonly = False): + def download(self, ud, d, checkonly = False): """Fetch urls""" basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate" @@ -76,7 +76,7 @@ class Wget(FetchMethod): else: fetchcmd = d.getVar("FETCHCOMMAND_wget", True) or d.expand(basecmd + " -P ${DL_DIR} '${URI}'") - uri = uri.split(";")[0] + uri = ud.url.split(";")[0] fetchcmd = fetchcmd.replace("${URI}", uri.split(";")[0]) fetchcmd = fetchcmd.replace("${FILE}", ud.basename) @@ -93,5 +93,5 @@ class Wget(FetchMethod): return True - def checkstatus(self, uri, ud, d): - return self.download(uri, ud, d, True) + def checkstatus(self, ud, d): + return self.download(ud, d, True) |