xbps-install(1): added -U --unpack-only to only unpack pkgs, skips configuration.

This commit is contained in:
Juan RP
2015-06-03 11:15:11 +02:00
parent b2dd18faba
commit 07e8330936
5 changed files with 28 additions and 5 deletions

View File

@ -348,9 +348,13 @@ xbps_transaction_commit(struct xbps_handle *xhp)
!xbps_dictionary_get(xhp->transd, "total-install-pkgs"))
goto out;
/* if installing packages for target_arch, don't configure anything */
if (xhp->target_arch && strcmp(xhp->native_arch, xhp->target_arch))
if (xhp->target_arch && strcmp(xhp->native_arch, xhp->target_arch)) {
/* if installing packages for target_arch, don't configure anything */
goto out;
/* do not configure packages if only unpacking is desired */
} else if (xhp->flags & XBPS_FLAG_UNPACK_ONLY) {
goto out;
}
xbps_object_iterator_reset(iter);
/* Force a pkgdb write for all unpacked pkgs in transaction */