Improve accuracy of awaiting_promotion environment state
- When moving to
awaiting_promotionstate, check that the package that is ready for promotion is newer than the package already on gstg and gprd. - When gstg or gprd are moved to ready state, check if there are packages ready for promotion, and move the environments to
awaiting_promotionstate if true.
Edited by Reuben Pereira