Figure non-automatic packages without upgrades.
Add missed prototypes.
Do not order queries for CONDITION match.
Add guess function for install candidates finding.
Merge branch 'upgrade-candidates'