Skip to content

Commit

Permalink
Don't call 'canonicalizePath' on a path we just removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Mar 9, 2016
1 parent ee56fe6 commit 9accafe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cabal-install/Distribution/Client/Sandbox.hs
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,9 @@ sandboxDelete verbosity _sandboxFlags globalFlags = do
++ "'.\nAssuming a shared sandbox. Please delete '"
++ sandboxDir ++ "' manually."

notice verbosity $ "Deleting the sandbox located at " ++ sandboxDir
removeDirectoryRecursive sandboxDir

absSandboxDir <- canonicalizePath sandboxDir
notice verbosity $ "Deleting the sandbox located at " ++ absSandboxDir
removeDirectoryRecursive absSandboxDir

let
pathInsideSandbox = isPrefixOf absSandboxDir
Expand Down

0 comments on commit 9accafe

Please sign in to comment.