From: simonmar Date: Fri, 18 Feb 2005 15:06:47 +0000 (+0000) Subject: [project @ 2005-02-18 15:06:38 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1053 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e67b107bc40a589c2566ec2eb7dd0db32b5c21eb;hp=a7f4060e7cbddc5ca54105c17eb756628e0cade2;p=ghc-hetmet.git [project @ 2005-02-18 15:06:38 by simonmar] Rename fields in InstalledPackageInfo for consistency with PackageDescription & buildInfo: extra-libs (extraLibraries) --> extra-libraries (extraLibraries) extra-cc-opts (extraCcOpts) --> cc-options (ccOptions) extra-ld-opts (extraLdOpts) --> ld-options (ldOptions) extra-hugs-opts (extraHugsOpts) --> hugs-options (hugsOptions) extra-frameworks (extraFrameworks) --> frameworks (frameworks) --- diff --git a/ghc/utils/ghc-pkg/Main.hs b/ghc/utils/ghc-pkg/Main.hs index 0fb8ffa..34c9dfe 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 | versionTags (pkgVersion pkgid) == versionTags globVersion + ps | pkgVersion pkgid == globVersion -> return ps | otherwise -> die ("package " ++ showPackageId pkgid ++ @@ -460,10 +460,10 @@ toField "extra_libraries" = Just $ strList . extraLibraries toField "include_dirs" = Just $ strList . includeDirs toField "c_includes" = Just $ strList . includes toField "package_deps" = Just $ strList . map showPackageId. depends -toField "extra_cc_opts" = Just $ strList . extraCcOpts -toField "extra_ld_opts" = Just $ strList . extraLdOpts +toField "extra_cc_opts" = Just $ strList . ccOptions +toField "extra_ld_opts" = Just $ strList . ldOptions toField "framework_dirs" = Just $ strList . frameworkDirs -toField "extra_frameworks"= Just $ strList . extraFrameworks +toField "extra_frameworks"= Just $ strList . frameworks toField s = showInstalledPackageInfoField s strList :: [String] -> String