From a1100fd00de826d6a0880a276a29d9519a735ef0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 23 Jun 2011 11:40:11 +0200 Subject: [PATCH] libxbps: when updating ignore pkgs in config-files state. --- lib/plist_find.c | 4 ++-- lib/repository_findpkg.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plist_find.c b/lib/plist_find.c index 7092f4b5..595bb80e 100644 --- a/lib/plist_find.c +++ b/lib/plist_find.c @@ -327,9 +327,9 @@ xbps_find_pkg_dict_installed(const char *str, bool bypattern) rpkgd = prop_dictionary_copy(pkgd); break; case XBPS_PKG_STATE_CONFIG_FILES: - errno = ENOENT; xbps_dbg_printf("'%s' installed but its state is " - "config-files\n",str); + "config-files, ignoring...\n", str); + errno = ENOENT; break; default: break; diff --git a/lib/repository_findpkg.c b/lib/repository_findpkg.c index dd8cc7a0..f0810209 100644 --- a/lib/repository_findpkg.c +++ b/lib/repository_findpkg.c @@ -73,7 +73,7 @@ repository_find_pkg(const char *pattern, const char *reason) /* update */ pkg_repod = xbps_find_pkg_dict_installed(pattern, false); if (pkg_repod == NULL) { - rv = ENODEV; + rv = errno; goto out; } prop_object_release(pkg_repod);