Skip to content

Commit

Permalink
proper bugfix: ghc version x.y.z is not same as version x.y
Browse files Browse the repository at this point in the history
haskell-updater was treating ghc 6.12.2.20100521 as the same version as
6.12.2, this patch makes it into two separate versions.
  • Loading branch information
kolmodin committed Jun 12, 2010
1 parent 4e1ceeb commit 0f06128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Distribution/Gentoo/GHC.hs
Expand Up @@ -129,7 +129,7 @@ checkLibDir thisGhc libDir = pkgsHaveContent (hasDirMatching wanted)
isValid = isGhcLibDir libDir

-- Invalid if it's this GHC
isInvalid = BS.isPrefixOf thisGhc
isInvalid fp = fp == thisGhc || BS.isPrefixOf (thisGhc `BS.snoc` pathSeparator) fp

-- A valid GHC library directory starting at libdir has a name of
-- either "ghc" or "ghc-bin", then a hyphen and then a version number.
Expand Down

0 comments on commit 0f06128

Please sign in to comment.