Fix some issues with conflicts detection during package upgrades, as well as
using EVENT_PIPE only during the download phase. This will need to be backported
to the current PRODUCTION set before issuing new updates.