From 0a26497b5005b01d579b1ddf3ef2fc3587d6255a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 3 Feb 2011 09:34:38 +0100 Subject: [PATCH] xbps_repository_update_allpkgs: return ENOENT if regpkgdb dict cannot be internalized. --- lib/repository_findpkg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/repository_findpkg.c b/lib/repository_findpkg.c index 3c9e5ea5..81884d9c 100644 --- a/lib/repository_findpkg.c +++ b/lib/repository_findpkg.c @@ -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