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)
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)