Skip to content

Commit

Permalink
Merge pull request #5701 from haskell/fix-5699
Browse files Browse the repository at this point in the history
new-clean should not delete dist-newstyle/src

(cherry picked from commit 3dfc642)
  • Loading branch information
typedrat authored and 23Skidoo committed Nov 21, 2018
1 parent 5c49e01 commit c549d9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions cabal-install/Distribution/Client/CmdClean.hs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ cleanAction CleanFlags{..} extraArgs _ = do
when buildRootExists $ do
info verbosity ("Deleting build root (" ++ buildRoot ++ ")")
handleDoesNotExist () $ removeDirectoryRecursive buildRoot

when unpackedSrcRootExists $ do
info verbosity ("Deleting unpacked source root (" ++ unpackedSrcRoot ++ ")")
handleDoesNotExist () $ removeDirectoryRecursive unpackedSrcRoot
else do
let distRoot = distDirectory distLayout

Expand Down
1 change: 1 addition & 0 deletions cabal-install/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-*-change-log-*-

2.4.0.1 (current bugfix version)
* new-clean no longer deletes dist-newstyle/src with `-s`. (#5699)
* 'new-install' now warns when failing to symlink an exe (#5602)
* Extend 'cabal init' support for 'cabal-version' selection (#5567)
* 'new-sdist' now generates tarballs with file modification
Expand Down

0 comments on commit c549d9e

Please sign in to comment.