diff options
-rw-r--r-- | meta/classes/base.bbclass | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 3551e35a1b..6f49ab046a 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -374,18 +374,6 @@ oe_machinstall() { | |||
374 | fi | 374 | fi |
375 | } | 375 | } |
376 | 376 | ||
377 | addtask showdata | ||
378 | do_showdata[nostamp] = "1" | ||
379 | python do_showdata() { | ||
380 | import sys | ||
381 | # emit variables and shell functions | ||
382 | bb.data.emit_env(sys.__stdout__, d, True) | ||
383 | # emit the metadata which isnt valid shell | ||
384 | for e in d.keys(): | ||
385 | if bb.data.getVarFlag(e, 'python', d): | ||
386 | sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, bb.data.getVar(e, d, 1))) | ||
387 | } | ||
388 | |||
389 | addtask listtasks | 377 | addtask listtasks |
390 | do_listtasks[nostamp] = "1" | 378 | do_listtasks[nostamp] = "1" |
391 | python do_listtasks() { | 379 | python do_listtasks() { |
@@ -494,8 +482,11 @@ python base_do_fetch() { | |||
494 | (type,host,path,_,_,_) = bb.decodeurl(url) | 482 | (type,host,path,_,_,_) = bb.decodeurl(url) |
495 | uri = "%s://%s%s" % (type,host,path) | 483 | uri = "%s://%s%s" % (type,host,path) |
496 | try: | 484 | try: |
497 | if not base_chk_file(parser, pn, pv,uri, localpath, d): | 485 | if not base_chk_file(parser, pn, pv,uri, localpath, d): |
498 | bb.note("%s-%s-%s has no section, not checking URI" % (pn,pv,uri)) | 486 | if type != "file": |
487 | bb.note("%s-%s-%s has no section, not checking URI" % (pn,pv,uri)) | ||
488 | else: | ||
489 | bb.debug("%s-%s-%s has no section, not checking URI" % (pn,pv,uri)) | ||
499 | except Exception: | 490 | except Exception: |
500 | raise bb.build.FuncFailed("Checksum of '%s' failed" % uri) | 491 | raise bb.build.FuncFailed("Checksum of '%s' failed" % uri) |
501 | } | 492 | } |