Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
b8b7080b
Commit
b8b7080b
authored
Nov 06, 2014
by
Mikhail Glushenkov
Browse files
Merge pull request #2204 from lspitzner/sandbox-delete
'sandbox delete': exit with 0 even with 'require-sandbox: True'
parents
5ef7d84b
65a19830
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Sandbox.hs
View file @
b8b7080b
...
...
@@ -326,7 +326,10 @@ sandboxInit verbosity sandboxFlags globalFlags = do
-- | Entry point for the 'cabal sandbox delete' command.
sandboxDelete
::
Verbosity
->
SandboxFlags
->
GlobalFlags
->
IO
()
sandboxDelete
verbosity
_sandboxFlags
globalFlags
=
do
(
useSandbox
,
_
)
<-
loadConfigOrSandboxConfig
verbosity
globalFlags
mempty
(
useSandbox
,
_
)
<-
loadConfigOrSandboxConfig
verbosity
globalFlags
{
globalRequireSandbox
=
Flag
False
}
mempty
case
useSandbox
of
NoSandbox
->
warn
verbosity
"Not in a sandbox."
UseSandbox
sandboxDir
->
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment