Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

disable hackage's preferred-versions (as we don't use it when merge e…

…builds)

hackage.haskell.org/00-index.tar contains preferred-versions for some interesting
packages. For now it's 'base-3'.

Otherwise depends generated by hackport differ from ones pulled by ./Setup.hs.
  • Loading branch information...
commit 54762efe02de6cfdea11fd653c51ccdffcb69bbc 1 parent 11e7609
@trofi trofi authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 cabal-install/Distribution/Client/IndexUtils.hs
View
5 cabal-install/Distribution/Client/IndexUtils.hs
@@ -332,10 +332,15 @@ extractPkg entry blockNo = case Tar.entryContent entry of
extractPrefs :: Tar.Entry -> Maybe [Dependency]
extractPrefs entry = case Tar.entryContent entry of
+{-
+ -- get rid of hackage's preferred-versions
+ -- I'd like to have bleeding-edge packages in system and I don't fear of
+ -- broken packages with improper depends
Tar.NormalFile content _
| takeFileName (Tar.entryPath entry) == "preferred-versions"
-> Just . parsePreferredVersions
. BS.Char8.unpack $ content
+-}
_ -> Nothing
parsePreferredVersions :: String -> [Dependency]
Please sign in to comment.
Something went wrong with that request. Please try again.