Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 0f061288e88fd83f7f74d4a17f120737fdfe258c 1 parent 4e1ceeb
Lennart Kolmodin authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  Distribution/Gentoo/GHC.hs
2  Distribution/Gentoo/GHC.hs
@@ -129,7 +129,7 @@ checkLibDir thisGhc libDir = pkgsHaveContent (hasDirMatching wanted)
129 129
     isValid = isGhcLibDir libDir
130 130
 
131 131
     -- Invalid if it's this GHC
132  
-    isInvalid = BS.isPrefixOf thisGhc
  132
+    isInvalid fp = fp == thisGhc || BS.isPrefixOf (thisGhc `BS.snoc` pathSeparator) fp
133 133
 
134 134
 -- A valid GHC library directory starting at libdir has a name of
135 135
 -- either "ghc" or "ghc-bin", then a hyphen and then a version number.

0 notes on commit 0f06128

Please sign in to comment.
Something went wrong with that request. Please try again.