summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-20 15:34:50 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-20 15:34:50 +0000
commitedd290bd1ae192e7f03b4d2336e6412a96e7f37e (patch)
treed248ccfd338c4a57ffdd4780bbbb6dad8a3d49e5 /meta/classes/base.bbclass
parentb8d69d6f6e41896046a07f6ffb5d156ed23c6556 (diff)
downloadpoky-edd290bd1ae192e7f03b4d2336e6412a96e7f37e.tar.gz
base/utils.bbclass: Drop former checksum code now bitbake is handling this for us
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass41
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 384e723cf5..c60048bd50 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -78,18 +78,6 @@ def base_dep_prepend(d):
78 # 78 #
79 79
80 deps = "" 80 deps = ""
81
82 # bb.utils.sha256_file() will return None on Python 2.4 because hashlib
83 # isn't present. In this case we use a shasum-native to checksum, so if
84 # hashlib isn't present then add shasum-native to the dependencies.
85 try:
86 import hashlib
87 except ImportError:
88 # Adding shasum-native as a dependency of shasum-native would be
89 # stupid, so don't do that.
90 if bb.data.getVar('PN', d, True) != "shasum-native":
91 deps = "shasum-native "
92
93 # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not 81 # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not
94 # we need that built is the responsibility of the patch function / class, not 82 # we need that built is the responsibility of the patch function / class, not
95 # the application. 83 # the application.
@@ -160,35 +148,6 @@ python base_do_fetch() {
160 except: 148 except:
161 (type, value, traceback) = sys.exc_info() 149 (type, value, traceback) = sys.exc_info()
162 raise bb.build.FuncFailed("Unknown fetch Error: %s" % value) 150 raise bb.build.FuncFailed("Unknown fetch Error: %s" % value)
163
164
165 # Verify the SHA and MD5 sums we have in OE and check what do
166 # in
167 check_sum = bb.which(bb.data.getVar('BBPATH', d, True), "conf/checksums.ini")
168 if not check_sum:
169 bb.note("No conf/checksums.ini found, not checking checksums")
170 return
171
172 try:
173 parser = base_chk_load_parser(check_sum)
174 except:
175 bb.note("Creating the CheckSum parser failed")
176 return
177
178 pv = bb.data.getVar('PV', d, True)
179 pn = bb.data.getVar('PN', d, True)
180
181 # Check each URI
182 for url in src_uri.split():
183 localpath = bb.data.expand(bb.fetch.localpath(url, localdata), localdata)
184 (type,host,path,_,_,_) = bb.decodeurl(url)
185 uri = "%s://%s%s" % (type,host,path)
186 try:
187 if type == "http" or type == "https" or type == "ftp" or type == "ftps":
188 if not base_chk_file(parser, pn, pv,uri, localpath, d):
189 bb.note("%s-%s: %s has no entry in conf/checksums.ini, not checking URI" % (pn,pv,uri))
190 except Exception:
191 raise bb.build.FuncFailed("Checksum of '%s' failed" % uri)
192} 151}
193 152
194def subprocess_setup(): 153def subprocess_setup():