patch applied (cabal-branches/cabal-1.6): Add some checks on the repository sections