[project @ 2005-02-21 10:13:00 by simonmar]
[ghc-hetmet.git] / ghc / utils / ghc-pkg / Main.hs
index 34c9dfe..1c97030 100644 (file)
@@ -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 ++