libxbps: xbps_configure_pkg: ignore pkgs in config-files state.
This commit is contained in:
parent
51b45a0d08
commit
5ade2f37c7
@ -55,7 +55,7 @@
|
||||
*/
|
||||
#define XBPS_PKGINDEX_VERSION "1.2"
|
||||
|
||||
#define XBPS_API_VERSION "20111020"
|
||||
#define XBPS_API_VERSION "20111020-1"
|
||||
#define XBPS_VERSION "0.10.0"
|
||||
|
||||
/**
|
||||
|
@ -91,8 +91,17 @@ xbps_configure_pkg(const char *pkgname,
|
||||
|
||||
if (check_state) {
|
||||
rv = xbps_pkg_state_installed(pkgname, &state);
|
||||
if (rv != 0)
|
||||
if (rv == ENOENT) {
|
||||
/*
|
||||
* package not installed or has been removed
|
||||
* (must be purged) so ignore it.
|
||||
*/
|
||||
return 0;
|
||||
} else if (rv != 0) {
|
||||
xbps_dbg_printf("%s: [configure] failed to get "
|
||||
"pkg state: %s\n", pkgname, strerror(rv));
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
if (state == XBPS_PKG_STATE_INSTALLED) {
|
||||
if ((xhp->flags & XBPS_FLAG_FORCE) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user