From: simonmar Date: Tue, 15 Feb 2005 16:41:25 +0000 (+0000) Subject: [project @ 2005-02-15 16:41:25 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1063 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=d1f0e6ab30a569de987344cc695206ba0e6abbef [project @ 2005-02-15 16:41:25 by simonmar] Fix test in findPackages --- diff --git a/ghc/utils/ghc-pkg/Main.hs b/ghc/utils/ghc-pkg/Main.hs index a68497e..0fb8ffa 100644 --- a/ghc/utils/ghc-pkg/Main.hs +++ b/ghc/utils/ghc-pkg/Main.hs @@ -423,7 +423,7 @@ findPackages db_stack pkgid -- multiple packages. So eg. "Cabal-*" matches all Cabal packages, -- but "Cabal" matches just one Cabal package - if there are more, -- you get an error. - ps | pkgVersion pkgid == globVersion + ps | versionTags (pkgVersion pkgid) == versionTags globVersion -> return ps | otherwise -> die ("package " ++ showPackageId pkgid ++