Skip to content

Commit

Permalink
Use withPackageDB.
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Aug 15, 2016
1 parent 292bc20 commit 73e92bc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cabal-install/Distribution/Client/Status.hs
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,7 @@ status verbosity globalFlags statusFlags = do
return $ ( Just sandboxPath
, Just $ sandboxPackageDBPath sandboxPath comp platform)
else return (Nothing, Nothing)
let dbs :: [PackageDB] -- TODO: it might be better to inspect the currently
-- configured dbs instead of a static global,local,..
dbs = GlobalPackageDB
: UserPackageDB
: case sandboxDbPath of
Nothing -> []
Just p -> [SpecificPackageDB p]
let dbs = withPackageDB buildConfig
let noFlags = not $ any Cabal.fromFlag [ statusVersion statusFlags
, statusProgVersions statusFlags
, statusCompiler statusFlags
Expand Down

0 comments on commit 73e92bc

Please sign in to comment.