ensure all packages are upgraded when do_package_upgrades is set to true

Issue #DE164