Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix argument passed to DEINSTALL.
jlaffaye committed 15 years ago
commit 7c466b57176ca38a7de6e66beb1cd1b363ccf031
parent 9e6f3a0e137210ce44a81b3b8f9a82bf3893d628
1 file changed +1 -1
modified libpkg/scripts.c
@@ -156,7 +156,7 @@ pkg_script_pre_deinstall(struct pkg *pkg)
		switch (pkg_script_type(scripts[i])) {
			case PKG_SCRIPT_DEINSTALL:
				sbuf_reset(script_cmd);
-
				sbuf_printf(script_cmd, "set -- %s-%s PRE-DEINSTALL\n%s", pkg_get(pkg, PKG_NAME), pkg_get(pkg, PKG_VERSION), pkg_script_data(scripts[i]));
+
				sbuf_printf(script_cmd, "set -- %s-%s DEINSTALL\n%s", pkg_get(pkg, PKG_NAME), pkg_get(pkg, PKG_VERSION), pkg_script_data(scripts[i]));
				sbuf_finish(script_cmd);
				system(sbuf_data(script_cmd));
				break;