diff options
Diffstat (limited to 'dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch')
-rw-r--r-- | dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch b/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch new file mode 100644 index 000000000000..c36582680a56 --- /dev/null +++ b/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch @@ -0,0 +1,20 @@ +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] |