xbps_repository_update_allpkgs: return ENOENT if regpkgdb dict cannot be internalized.
This commit is contained in:
parent
692caea1cd
commit
0a26497b50
@ -222,13 +222,12 @@ xbps_repository_update_allpkgs(void)
|
|||||||
*/
|
*/
|
||||||
dict = xbps_regpkgdb_dictionary_get();
|
dict = xbps_regpkgdb_dictionary_get();
|
||||||
if (dict == NULL)
|
if (dict == NULL)
|
||||||
return errno;
|
return ENOENT;
|
||||||
|
|
||||||
iter = xbps_get_array_iter_from_dict(dict, "packages");
|
iter = xbps_get_array_iter_from_dict(dict, "packages");
|
||||||
if (iter == NULL) {
|
if (iter == NULL) {
|
||||||
rv = errno;
|
|
||||||
xbps_regpkgdb_dictionary_release();
|
xbps_regpkgdb_dictionary_release();
|
||||||
return rv;
|
return ENOENT;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Find out if there is a newer version for all currently
|
* Find out if there is a newer version for all currently
|
||||||
|
Loading…
x
Reference in New Issue
Block a user