From e7562fa72d1d160297f9953b4dd40b237ac2d82a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 30 Nov 2011 11:11:15 +0100 Subject: [PATCH] libxbps: make xbps_find_*pkg_dict_installed only accept {INSTALL,UNPACK}ED states as valid ones. --- include/xbps_api.h | 2 +- lib/plist_find.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index 13b65128..4b8d409a 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -55,7 +55,7 @@ */ #define XBPS_PKGINDEX_VERSION "1.3" -#define XBPS_API_VERSION "20111127" +#define XBPS_API_VERSION "20111130" #define XBPS_VERSION "0.11.0" /** diff --git a/lib/plist_find.c b/lib/plist_find.c index 676ffde1..c4867844 100644 --- a/lib/plist_find.c +++ b/lib/plist_find.c @@ -371,12 +371,9 @@ find_pkgd_installed(const char *str, bool bypattern, bool virtual) case XBPS_PKG_STATE_UNPACKED: rpkgd = prop_dictionary_copy(pkgd); break; - case XBPS_PKG_STATE_CONFIG_FILES: - xbps_dbg_printf("'%s' installed but its state is " - "config-files, ignoring...\n", str); - errno = ENOENT; - break; default: + /* not fully installed */ + errno = ENOENT; break; }