Revert "Don't track packages in 'external.packages' as dependencies"

This reverts commit cbe378f09b506fe38f2807cb5d7947ff111dfc53.