~ chicken-core (chicken-5) c6d6cd1b153c39ae4191d52193c8da853ddb9a08
commit c6d6cd1b153c39ae4191d52193c8da853ddb9a08
Author: Mario Domenech Goulart <mario.goulart@gmail.com>
AuthorDate: Tue Oct 2 17:18:23 2012 -0300
Commit: Mario Domenech Goulart <mario.goulart@gmail.com>
CommitDate: Tue Oct 2 17:18:23 2012 -0300
Revert "Prevent running applications from crashing when reinstalling eggs"
This reverts commit 91cc29dfe22f1bded11fa4fec0389857df7b26d0.
The patch as it is risks removing directories when the second argument
(to) is a directory. Eggs that depend on setup-helper trash
(chicken-home), since setup-helper runs
(when (setup-install-mode) (copy-file "setup-helper.scm" (chicken-home))
at some point.
diff --git a/setup-api.scm b/setup-api.scm
index cf9d8a1e..50ab4842 100644
--- a/setup-api.scm
+++ b/setup-api.scm
@@ -509,8 +509,6 @@
(directory from)))
(else
(ensure-directory to)
- (when (file-exists? to)
- (run (,*remove-command* ,to)))
(run (,*copy-command*
,(shellpath from)
,(shellpath to))))))
Trap