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
This commit is contained in:
Juan RP 2009-10-02 13:38:33 +02:00
parent e668ba5193
commit 53cb406513

View File

@ -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));