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

@@ -257,7 +257,8 @@ unpack_archive(prop_dictionary_t pkg_repod, struct archive *ar)
goto out;
}
rv = xbps_file_exec(buf, "pre",
pkgname, version, update ? "yes" : "no", NULL);
pkgname, version, update ? "yes" : "no",
xhp->conffile, NULL);
free(buf);
if (rv != 0) {
xbps_set_cb_state(XBPS_STATE_UNPACK_FAIL,