Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Allow a "successful failure" in a post-install script when exiting with status '3'.
Glen Barber committed 8 years ago
commit 983eb7236e8665439b769dae54ca9a43ab1a8aa0
parent 07826258d7c114af5cc70c92db715eca10d3c185
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;