Function alpm_sys::alpm_add_pkg
source · pub unsafe extern "C" fn alpm_add_pkg(
handle: *mut alpm_handle_t,
pkg: *mut alpm_pkg_t
) -> c_int
Expand description
Add a package to the transaction. If the package was loaded by alpm_pkg_load(), it will be freed upon \link alpm_trans_release \endlink invocation. @param handle the context handle @param pkg the package to add @return 0 on success, -1 on error (pm_errno is set accordingly)