module main import alpm // prepare_error explains a failed transaction when the upgrade of outdated // dependencies was switched off. a dependency too old for a target is not // the cause then: libalpm's prepare pulls the newer one in by itself. what // fails is the other direction — an installed package that needs the very // version this transaction replaces — which the walk (broken_dependents) // would have upgraded along. the hint goes on a line of its own, below the // broken dependencies prepare listed fn prepare_error(handle &alpm.Handle, msg string, no_upgrade_deps bool) string { if no_upgrade_deps && handle.errno() == .unsatisfied_deps { return '${msg}\nwithout --no-upgrade-deps, the installed packages this breaks are upgraded along with it when the repos have a version that fits' } return msg }