[][src]Function alpm_sys_fork::alpm_add_pkg

pub unsafe extern "C" fn alpm_add_pkg(
    handle: *mut alpm_handle_t,
    pkg: *mut alpm_pkg_t
) -> c_int

Add a package to the transaction. If the package was loaded by alpm_pkg_load(), it will be freed upon alpm_trans_release() invocation. @param handle the context handle @param pkg the package to add @return 0 on success, -1 on error (pm_errno is set accordingly)