Browse files

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

haskell-updater was treating ghc as the same version as
6.12.2, this patch makes it into two separate versions.
  • Loading branch information...
1 parent cb35f74 commit a7a1bb2d6209796fd3b58b71854282ae3bbaf070 @kolmodin kolmodin committed May 27, 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 = BS.isPrefixOf (BS.append thisGhc (BS.pack "/"))
-- 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 a7a1bb2

Please sign in to comment.