summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2006-01-07 17:42:23 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2006-01-07 17:42:23 +0000
commitf0d6e914a46879bda7ba960b602743c9f6f92331 (patch)
tree0e7c30015961a02fdaa447f59fc05d2423d02a1d /lib
parent34d1994b9bc47b22e219e93a3e1e27fc2cba41a6 (diff)
downloadbitbake-f0d6e914a46879bda7ba960b602743c9f6f92331.tar.gz
bitbake/lib/bb/fetch:
-Make the wget fetcher use md5sum parameter associated with a URL. -In a bitbake file for use with OpenEmbedded SRC_URI="http://www.froglogic.de;md5sum=ABCDEF" will now work.
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch/wget.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bb/fetch/wget.py b/lib/bb/fetch/wget.py
index d9bbdd4b7..4a7d11b46 100644
--- a/lib/bb/fetch/wget.py
+++ b/lib/bb/fetch/wget.py
@@ -57,13 +57,13 @@ class Wget(Fetch):
def go(self, d, urls = []):
"""Fetch urls"""
- def md5_sum(basename, d):
+ def md5_sum(parm, d):
"""
- Fast and incomplete OVERRIDE implementation for MD5SUM handling
- MD5SUM_basename = "SUM" and fallback to MD5SUM_basename
+ Return the MD5SUM associated with the to be downloaded
+ file.
+ It can return None if no md5sum is associated
"""
- var = "MD5SUM_%s" % basename
- return data.getVar(var, d) or data.getVar("MD5SUM", d)
+ return parm['md5sum']
def verify_md5sum(wanted_sum, got_sum):
"""
@@ -76,7 +76,7 @@ class Wget(Fetch):
def fetch_uri(uri, basename, dl, md5, parm, d):
# the MD5 sum we want to verify
- wanted_md5sum = md5_sum(basename, d)
+ wanted_md5sum = md5_sum(parm, d)
if os.path.exists(dl):
# file exists, but we didnt complete it.. trying again..
fetchcmd = data.getVar("RESUMECOMMAND", d, 1)