Skip to content

Commit

Permalink
s/ProgramConfiguration/ProgramDb/.
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Sep 11, 2016
1 parent 4ea8b37 commit 57ea046
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cabal/Distribution/Simple/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ getInstalledPackages verbosity comp packagedbs progdb = do

-- | Check the consistency of the given package databases.
checkPackageDBs :: Verbosity -> Compiler -> PackageDBStack
-> ProgramConfiguration
-> ProgramDb
-> IO [(PackageDB, [String])]
checkPackageDBs verbosity comp packagedbs conf = do
checkPackageDBs verbosity comp packagedbs progdb = do
checkPackageDbStack comp packagedbs
sequenceA
[ do strs <- HcPkg.check (hcPkgInfo conf) verbosity packagedb
[ do strs <- HcPkg.check (hcPkgInfo progdb) verbosity packagedb
return (packagedb, strs)
| packagedb <- packagedbs ]

Expand Down
18 changes: 9 additions & 9 deletions cabal-install/Distribution/Client/Status.hs
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ status verbosity globalFlags statusFlags = do
(useSandbox, config) <- loadConfigOrSandboxConfig
verbosity
(globalFlags { globalRequireSandbox = Cabal.Flag False })
(_defaultComp, platform, _defaultConf) <- configCompilerAux'
$ savedConfigureFlags config
(_defaultComp, platform, _defaultProgDb) <- configCompilerAux'
$ savedConfigureFlags config
let distPref = useDistPref defaultSetupScriptOptions
buildConfig <- tryGetPersistBuildConfig distPref
(comp, conf, dbs) <- case buildConfig of
(comp, progdb, dbs) <- case buildConfig of
Left _ -> die $ "Couldn't load the saved package config file. "
++ "Most likely reason: the package was configured with a different "
++ "version of Cabal than the one cabal-install was built with."
Expand Down Expand Up @@ -266,7 +266,7 @@ status verbosity globalFlags statusFlags = do
return ()
printProgramVersions = do
putStrLn "Program versions:"
flip mapM_ (configuredPrograms conf) $ \cp ->
flip mapM_ (configuredPrograms progdb) $ \cp ->
case programVersion cp of
Nothing -> return ()
Just v -> putStrLn
Expand Down Expand Up @@ -318,11 +318,11 @@ status verbosity globalFlags statusFlags = do
verbosity
comp
dbs
conf
progdb
sourcePkgDb <- withRepoContext verbosity
globalFlags'
(getSourcePackages verbosity)
pkgConfigDb <- readPkgConfigDb verbosity conf
pkgConfigDb <- readPkgConfigDb verbosity progdb
pkgSpecifiers <- withRepoContext verbosity
globalFlags'
$ \repoContext -> resolveUserTargets
Expand All @@ -337,7 +337,7 @@ status verbosity globalFlags statusFlags = do
globalFlags'
comp
platform
conf
progdb
useSandbox $ \mSandboxPkgInfo ->
maybeWithSandboxDirOnSearchPath useSandbox $ do
planPkgs <- planPackages
Expand Down Expand Up @@ -383,7 +383,7 @@ status verbosity globalFlags statusFlags = do
Just op -> putStrLn $ ";\n But there is a sandbox in parent:\n "
++ op
printPackageDbs = do
installedPackageIndex <- getInstalledPackages verbosity comp dbs conf
installedPackageIndex <- getInstalledPackages verbosity comp dbs progdb
let pkgs = allPackages installedPackageIndex
pkgTuples = [ (root, disp $ sourcePackageId pkg)
| pkg <- pkgs
Expand Down Expand Up @@ -412,7 +412,7 @@ status verbosity globalFlags statusFlags = do
packageDoc ps))
printPackageDBChecks = do
putStrLn $ "Package database checks:"
checks <- checkPackageDBs verbosity comp dbs conf
checks <- checkPackageDBs verbosity comp dbs progdb
flip mapM_ checks $ \(db, output) -> if null output
then putStrLn $ " clean for database " ++ show db ++ "."
else do
Expand Down

0 comments on commit 57ea046

Please sign in to comment.