From a60fde85a5ec4e43a4e9a19787bf5dfa12c7b442 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 16 Oct 2009 15:46:54 +0200 Subject: [PATCH] xbps_find_new_packages(): do not treat missing packages in repo, or packages with less than or equal version installed as errors. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091016134654-14a5x7b6ra9a632s --- lib/findpkg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/findpkg.c b/lib/findpkg.c index 65f6d06a..09c85249 100644 --- a/lib/findpkg.c +++ b/lib/findpkg.c @@ -229,8 +229,10 @@ xbps_find_new_packages(void) while ((obj = prop_object_iterator_next(iter)) != NULL) { prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname); rv = xbps_find_new_pkg(pkgname, obj); - if (rv == ENOENT || rv == EEXIST) + if (rv == ENOENT || rv == EEXIST) { + rv = 0; continue; + } else if (rv != 0) { prop_object_iterator_release(iter); return rv;