Skip to content

Commit

Permalink
Make 'delete-source' point the user to 'sandbox hc-pkg'.
Browse files Browse the repository at this point in the history
See #1447.
  • Loading branch information
23Skidoo committed Aug 30, 2013
1 parent c9e1050 commit f2a5929
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cabal-install/Distribution/Client/Sandbox.hs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ sandboxDeleteSource verbosity buildTreeRefs _sandboxFlags globalFlags = do
withRemoveTimestamps sandboxDir $ do
Index.removeBuildTreeRefs verbosity indexFile buildTreeRefs

notice verbosity $ "Note: 'sandbox delete-source' only deletes the" ++
"add-source record, but does not unregister the package " ++
"from the package DB.\n\nUse 'sandbox hc-pkg -- unregister' to do that."

-- | Entry point for the 'cabal sandbox list-sources' command.
sandboxListSources :: Verbosity -> SandboxFlags -> GlobalFlags
-> IO ()
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ sandboxCommand = CommandUI {
"Usage: " ++ pname ++ " sandbox init\n"
++ " or: " ++ pname ++ " sandbox delete\n"
++ " or: " ++ pname ++ " sandbox add-source [PATHS]\n\n"
++ " or: " ++ pname ++ " sandbox hc-pkg [ARGS]\n"
++ " or: " ++ pname ++ " sandbox hc-pkg -- [ARGS]\n"
++ " or: " ++ pname ++ " sandbox list-sources\n\n"
++ "Flags for sandbox:",

Expand Down

0 comments on commit f2a5929

Please sign in to comment.