Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
4d9f13f0
Commit
4d9f13f0
authored
Jun 24, 2014
by
Mikhail Glushenkov
Browse files
Merge pull request #1960 from sardonicpresence/fix1698
#1698 - Don't attempt to rename dist if it is already named correctly
parents
680b4439
e0c9fec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Install.hs
View file @
4d9f13f0
...
...
@@ -1191,7 +1191,7 @@ installLocalTarballPackage verbosity jobLimit pkgid
distDirPathTmp
=
absUnpackedPath
</>
(
defaultDistPref
++
"-tmp"
)
distDirPathNew
=
absUnpackedPath
</>
distPref
distDirExists
<-
doesDirectoryExist
distDirPath
when
distDirExists
$
do
when
(
distDirExists
&&
distDirPath
/=
distDirPathNew
)
$
do
-- NB: we need to handle the case when 'distDirPathNew' is a
-- subdirectory of 'distDirPath' (e.g. 'dist/dist-sandbox-3688fbc2').
debug
verbosity
$
"Renaming '"
++
distDirPath
++
"' to '"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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