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

@ -213,18 +213,17 @@ xbps_repository_get_transaction_dict(void)
* return the dictionary, the client should always
* check if that's the case.
*/
if (rv == ENOENT)
return trans_dict;
return NULL;
return trans_dict;
}
/*
* Add total transaction installed/download sizes
* to the transaction dictionary.
*/
if (compute_transaction_sizes() != 0)
if ((rv = compute_transaction_sizes()) != 0) {
errno = rv;
return NULL;
}
/*
* Remove the "missing_deps" array now that it's not needed.