Split XBPS_FLAG_FORCE into CONFIGURE and REMOVE_FILES, bump XBPS_API_VERSION.

This commit is contained in:
Juan RP
2011-11-24 11:50:53 +01:00
parent ab36420439
commit ab17573692
4 changed files with 24 additions and 15 deletions

View File

@@ -42,11 +42,10 @@
* ran successful.
*
* @note
* If the \a XBPS_FLAG_FORCE is set through xbps_init() in the flags
* If the \a XBPS_FLAG_FORCE_CONFIGURE is set through xbps_init() in the flags
* member, the package (or packages) will be reconfigured even if its
* state is XBPS_PKG_STATE_INSTALLED.
*/
int
xbps_configure_packages(void)
{
@@ -104,7 +103,7 @@ xbps_configure_pkg(const char *pkgname,
}
if (state == XBPS_PKG_STATE_INSTALLED) {
if ((xhp->flags & XBPS_FLAG_FORCE) == 0)
if ((xhp->flags & XBPS_FLAG_FORCE_CONFIGURE) == 0)
return 0;
} else if (state != XBPS_PKG_STATE_UNPACKED)
return EINVAL;