arrfor"
This commit is contained in:
18
verify.ce
18
verify.ce
@@ -213,9 +213,9 @@ if (scope == 'shop') {
|
||||
// Gather all dependencies
|
||||
var all_deps = pkg.gather_dependencies(locator)
|
||||
packages_to_verify.push(locator)
|
||||
for (var dep of all_deps) {
|
||||
arrfor(all_deps, function(dep) {
|
||||
packages_to_verify.push(dep)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
packages_to_verify.push(locator)
|
||||
}
|
||||
@@ -228,25 +228,25 @@ log.console("")
|
||||
check_link_cycles()
|
||||
check_dangling_links()
|
||||
|
||||
for (var p of packages_to_verify) {
|
||||
if (p == 'core') continue
|
||||
arrfor(packages_to_verify, function(p) {
|
||||
if (p == 'core') return
|
||||
verify_package(p)
|
||||
}
|
||||
})
|
||||
|
||||
// Print results
|
||||
if (warnings.length > 0) {
|
||||
log.console("Warnings:")
|
||||
for (var w of warnings) {
|
||||
arrfor(warnings, function(w) {
|
||||
log.console(" " + w)
|
||||
}
|
||||
})
|
||||
log.console("")
|
||||
}
|
||||
|
||||
if (errors.length > 0) {
|
||||
log.console("Errors:")
|
||||
for (var e of errors) {
|
||||
arrfor(errors, function(e) {
|
||||
log.console(" " + e)
|
||||
}
|
||||
})
|
||||
log.console("")
|
||||
log.console("Verification FAILED: " + text(errors.length) + " error(s), " + text(warnings.length) + " warning(s)")
|
||||
// Note: would use process.exit(1) if available
|
||||
|
||||
Reference in New Issue
Block a user