From ec852ee685c522d745405f3d7dac67098a4aa54b Mon Sep 17 00:00:00 2001 From: Michal Maruska Date: Mon, 18 Oct 2021 11:15:28 +0200 Subject: [PATCH] (pkg_add) Uninstall package files on error during POST-INSTALL --- pkgtools/pkg_install/files/add/perform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index 2a1d99941dfa..52852de8a96f 100644 --- a/pkgtools/pkg_install/files/add/perform.c +++ b/pkgtools/pkg_install/files/add/perform.c @@ -1545,7 +1545,7 @@ pkg_do(const char *pkgpath, int mark_automatic, int top_level) goto nuke_pkg; if (run_install_script(pkg, "POST-INSTALL")) - goto nuke_pkgdb; + goto nuke_pkg; /* XXX keep +INSTALL_INFO for updates? */ /* XXX keep +PRESERVE for updates? */