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);