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();
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user