[noticket] It appears active_packages() has gone missing, so switched to using packages() which returns only active by default.