Redmine#5342: create PACKAGES_CONTEXT and PACKAGES_CONTEXT_ANYVER macros
Redmine#5342: logging improvements and unfold hairy code in WillSchedulePackageOperation