You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref...

21 lines
775 B

diff --git a/Distribution/Client/IndexUtils.hs b/Distribution/Client/IndexUtils.hs
index 48d8d49..3a38ee1 100644
--- a/Distribution/Client/IndexUtils.hs
+++ b/Distribution/Client/IndexUtils.hs
@@ -312,10 +312,15 @@ extractPkg entry = 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]