Fix and improve when there are missing deps in the transaction dictionary.

This commit is contained in:
Juan RP
2010-11-23 23:17:04 +01:00
parent 99f3d846de
commit d2be842ce5
5 changed files with 23 additions and 11 deletions

View File

@@ -612,10 +612,11 @@ xbps_exec_transaction(bool yes)
trans->dict = xbps_repository_get_transaction_dict();
if (trans->dict == NULL) {
rv = errno;
xbps_dbg_printf("Empty transaction dictionary: %s\n",
strerror(errno));
goto out;
}
if (rv == ENOENT) {
if (errno == ENOENT) {
/*
* Bail out if there are unresolved deps.
*/