Commit 7d5cd2c8 authored by Timo Teräs's avatar Timo Teräs

pkg: consider script failure as non-fatal

Make a loud warning if the script returns failure, but do not
abort installation sequence because of that.
parent bfd53b59
......@@ -912,8 +912,12 @@ int apk_ipkg_run_script(struct apk_installed_package *ipkg,
unlinkat(root_fd, fn, 0);
apk_id_cache_reset(&db->id_cache);
if (WIFEXITED(status))
return WEXITSTATUS(status);
if (WIFEXITED(status)) {
int rc = WEXITSTATUS(status);
if (rc != 0)
apk_warning("%s: returned error %d", &fn[15], rc);
return 0;
}
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment