Get rid of pkg state half-unpacked; not-installed state is good enough.

This commit is contained in:
Juan RP
2012-11-11 09:42:30 +01:00
parent d6735d5685
commit df0d5d7330
5 changed files with 3 additions and 20 deletions

View File

@ -710,18 +710,6 @@ xbps_unpack_binary_pkg(struct xbps_handle *xhp, prop_dictionary_t pkg_repod)
return rv;
}
free(bpkg);
/*
* Set package state to half-unpacked.
*/
if ((rv = xbps_set_pkg_state_installed(xhp, pkgname, version,
XBPS_PKG_STATE_HALF_UNPACKED)) != 0) {
xbps_set_cb_state(xhp, XBPS_STATE_UNPACK_FAIL,
rv, pkgname, version,
"%s: [unpack] failed to set state to half-unpacked: %s",
pkgver, strerror(rv));
goto out;
}
/*
* Extract archive files.
*/