lib/package_unpack.c: pass pkgver to xbps_pkg_exec_buffer() not pkgname.

This commit is contained in:
Juan RP 2013-03-07 12:01:07 +01:00
parent 98adbf34a1
commit bcae7e83aa

View File

@ -197,7 +197,7 @@ unpack_archive(struct xbps_handle *xhp,
} }
rv = xbps_pkg_exec_buffer(xhp, instbuf, instbufsiz, rv = xbps_pkg_exec_buffer(xhp, instbuf, instbufsiz,
pkgname, "pre", update); pkgver, "pre", update);
if (rv != 0) { if (rv != 0) {
xbps_set_cb_state(xhp, xbps_set_cb_state(xhp,
XBPS_STATE_UNPACK_FAIL, XBPS_STATE_UNPACK_FAIL,