XBPS Library API 20240111
The X Binary Package System
|
Functions | |
int | xbps_configure_pkg (struct xbps_handle *xhp, const char *pkgname, bool check_state, bool update) |
int | xbps_configure_packages (struct xbps_handle *xhp, xbps_array_t ignpkgs) |
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_pkg | ( | struct xbps_handle * | xhp, |
const char * | pkgname, | ||
bool | check_state, | ||
bool | update | ||
) |
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. |
Definition at line 91 of file package_configure.c.
References xbps_handle::flags, xbps_pkg_exec_script(), xbps_pkg_name(), xbps_pkg_state_dictionary(), xbps_pkgdb_get_pkg(), and xbps_set_pkg_state_dictionary().
Referenced by xbps_configure_packages(), and xbps_transaction_commit().
int xbps_configure_packages | ( | struct xbps_handle * | xhp, |
xbps_array_t | ignpkgs | ||
) |
Configure (or force reconfiguration of) all packages.
[in] | xhp | Pointer to an xbps_handle struct. |
[in] | ignpkgs | Proplib array of strings with pkgname or pkgvers to ignore. |
Definition at line 53 of file package_configure.c.
References xbps_handle::pkgdb, xbps_configure_pkg(), xbps_match_pkgver_in_array(), and xbps_match_string_in_array().