Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Allow a "successful failure" in a post-install script when exiting with status '3'.
Glen Barber committed 8 years ago
commit 983eb7236e8665439b769dae54ca9a43ab1a8aa0
parent 0782625
1 file changed +3 -0
modified libpkg/scripts.c
@@ -198,6 +198,9 @@ pkg_script_run(struct pkg * const pkg, pkg_script type)
			}

			if (WEXITSTATUS(pstat) != 0) {
+
				if (WEXITSTATUS(pstat) == 3)
+
					exit(0);
+

				pkg_emit_error("%s script failed", map[i].arg);
				ret = EPKG_FATAL;
				goto cleanup;