libxbps: pass xhp->conffile as last argument when execing INSTALL/REMOVE scripts.

This commit is contained in:
Juan RP
2011-12-15 12:24:59 +01:00
parent a8f2f04d9f
commit 70e95786dc
5 changed files with 10 additions and 6 deletions

View File

@@ -202,7 +202,8 @@ xbps_purge_pkg(const char *pkgname, bool check_state)
return rv;
}
if (access(buf, X_OK) == 0) {
rv = xbps_file_exec(buf, "purge", pkgname, version, "no", NULL);
rv = xbps_file_exec(buf, "purge", pkgname, version,
"no", xhp->conffile, NULL);
if (rv != 0) {
free(buf);
if (errno && errno != ENOENT) {