Permalink
Browse files

proper bugfix: ghc version x.y.z is not same as version x.y

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...
1 parent 4e1ceeb commit 0f061288e88fd83f7f74d4a17f120737fdfe258c @kolmodin kolmodin committed Jun 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Distribution/Gentoo/GHC.hs
@@ -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.

0 comments on commit 0f06128

Please sign in to comment.