Fix build.
Fix the build some more.
Only print the repository in case more than 1 repos is available
Only query for reponame in case of upgrade/install
Add a pkg_has_message function to determine if a package has a message to display
Only create messages if at least one package has a message to display
Also prevent pkg-devel from being removed without -f
Knowing there's a message to print means not neding to faf about
comparing the before- and after length of the messages sbuf.