![]() |
XBPS Library API
0.19
The X Binary Package System
|
Functions | |
int | xbps_configure_packages (struct xbps_handle *xhp, bool flush) |
int | xbps_configure_pkg (struct xbps_handle *xhp, const char *pkgname, bool check_state, bool update, bool flush) |
Configure a package or all packages. Only packages in XBPS_PKG_STATE_UNPACKED state will be processed (unless overriden). Package configuration steps:
int xbps_configure_packages | ( | struct xbps_handle * | xhp, |
bool | flush | ||
) |
Configure (or force reconfiguration of) all packages.
[in] | xhp | Pointer to an xbps_handle struct. |
[in] | flush | Set it to true to flush state to pkgdb. |
Definition at line 50 of file package_configure.c.
References xbps_configure_pkg(), and xbps_pkgdb_update().
int xbps_configure_pkg | ( | struct xbps_handle * | xhp, |
const char * | pkgname, | ||
bool | check_state, | ||
bool | update, | ||
bool | flush | ||
) |
Configure (or force reconfiguration of) a package.
[in] | xhp | Pointer to an xbps_handle struct. |
[in] | pkgname | Package name to configure. |
[in] | check_state | Set it to true to check that package is in unpacked state. |
[in] | update | Set it to true if this package is being updated. |
[in] | flush | Set it to true to flush state to pkgdb. |
Definition at line 80 of file package_configure.c.
References xbps_handle::flags, xbps_handle::metadir, xbps_pkg_exec_script(), xbps_pkg_state_dictionary(), xbps_pkgdb_get_pkg(), xbps_pkgdb_update(), xbps_set_pkg_state_dictionary(), and xbps_xasprintf().
Referenced by xbps_configure_packages(), and xbps_transaction_commit().