xbps_repository_update_allpkgs: return ENOENT if regpkgdb dict cannot be internalized.

This commit is contained in:
Juan RP 2011-02-03 09:34:38 +01:00
parent 692caea1cd
commit 0a26497b50

View File

@ -222,13 +222,12 @@ xbps_repository_update_allpkgs(void)
*/
dict = xbps_regpkgdb_dictionary_get();
if (dict == NULL)
return errno;
return ENOENT;
iter = xbps_get_array_iter_from_dict(dict, "packages");
if (iter == NULL) {
rv = errno;
xbps_regpkgdb_dictionary_release();
return rv;
return ENOENT;
}
/*
* Find out if there is a newer version for all currently