libxbps: make xbps_find_*pkg_dict_installed only accept {INSTALL,UNPACK}ED states as valid ones.
This commit is contained in:
parent
8f119a4076
commit
e7562fa72d
@ -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"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user