pub unsafe extern "C" fn alpm_pkg_set_reason(
pkg: *mut alpm_pkg_t,
reason: alpm_pkgreason_t,
) -> c_int
Expand description
Set install reason for a package in the local database. The provided package object must be from the local database or this method will fail. The write to the local database is performed immediately. @param pkg the package to update @param reason the new install reason @return 0 on success, -1 on error (pm_errno is set accordingly)