Skip to content

Commit 73e92bc

Browse files
committed
Use withPackageDB.
1 parent 292bc20 commit 73e92bc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cabal-install/Distribution/Client/Status.hs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,7 @@ status verbosity globalFlags statusFlags = do
156156
return $ ( Just sandboxPath
157157
, Just $ sandboxPackageDBPath sandboxPath comp platform)
158158
else return (Nothing, Nothing)
159-
let dbs :: [PackageDB] -- TODO: it might be better to inspect the currently
160-
-- configured dbs instead of a static global,local,..
161-
dbs = GlobalPackageDB
162-
: UserPackageDB
163-
: case sandboxDbPath of
164-
Nothing -> []
165-
Just p -> [SpecificPackageDB p]
159+
let dbs = withPackageDB buildConfig
166160
let noFlags = not $ any Cabal.fromFlag [ statusVersion statusFlags
167161
, statusProgVersions statusFlags
168162
, statusCompiler statusFlags

0 commit comments

Comments
 (0)