patch applied (cabal-install): Only inspect the needed parts of the installed and available indexes