Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Report the failure, but continue execution on script failed
Baptiste Daroussin committed 13 years ago
commit 4158cd43da67e3a08c7dbf73310aaf2b7befe1d7
parent 0a40b0b8aee414f67567ba7f212065c2dc0e4ff7
1 file changed +3 -3
modified libpkg/scripts.c
@@ -105,19 +105,19 @@ pkg_script_run(struct pkg * const pkg, pkg_script type)
				pkg_emit_errno("Cannot run script",
				    map[i].arg);
				sbuf_delete(script_cmd);
-
				return (EPKG_FATAL);
+
				return (EPKG_OK);
			}

			unsetenv("PKG_PREFIX");

			while (waitpid(pid, &pstat, 0) == -1) {
				if (errno != EINTR)
-
					return (EPKG_FATAL);
+
					return (EPKG_OK);
			}

			if (WEXITSTATUS(pstat) != 0) {
				pkg_emit_error("%s script failed", map[i].arg);
-
				return (EPKG_FATAL);
+
				return (EPKG_OK);
			}
		}
	}