From 53cb4065131f7a92ca5ce083dd2ab6da88649dcc Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 2 Oct 2009 13:38:33 +0200 Subject: [PATCH] Pass another argument to the REMOVE script to make the script aware of package being upgraded or removed. Will be used later to restart services while upgrading packages. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091002113833-x7nsur0g4ehyr5zq --- lib/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remove.c b/lib/remove.c index 2078940d..3e653737 100644 --- a/lib/remove.c +++ b/lib/remove.c @@ -221,7 +221,7 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update) */ prepostf = true; rv = xbps_file_chdir_exec(rootdir, buf, "pre", pkgname, - version, NULL); + version, update ? "yes" : "no", NULL); if (rv != 0) { printf("%s: prerm action target error (%s)\n", pkgname, strerror(errno));