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:
parent
e668ba5193
commit
53cb406513
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user