libxbps: make xbps_find_*pkg_dict_installed only accept {INSTALL,UNPACK}ED states as valid ones.

This commit is contained in:
Juan RP 2011-11-30 11:11:15 +01:00
parent 8f119a4076
commit e7562fa72d
2 changed files with 3 additions and 6 deletions

View File

@ -55,7 +55,7 @@
*/ */
#define XBPS_PKGINDEX_VERSION "1.3" #define XBPS_PKGINDEX_VERSION "1.3"
#define XBPS_API_VERSION "20111127" #define XBPS_API_VERSION "20111130"
#define XBPS_VERSION "0.11.0" #define XBPS_VERSION "0.11.0"
/** /**

View File

@ -371,12 +371,9 @@ find_pkgd_installed(const char *str, bool bypattern, bool virtual)
case XBPS_PKG_STATE_UNPACKED: case XBPS_PKG_STATE_UNPACKED:
rpkgd = prop_dictionary_copy(pkgd); rpkgd = prop_dictionary_copy(pkgd);
break; 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: default:
/* not fully installed */
errno = ENOENT;
break; break;
} }