>From 93ed189c7fdd564412781c7295858b57e3f8dec6 Mon Sep 17 00:00:00 2001 From: Christian Kellermann Date: Mon, 1 Oct 2012 17:35:30 +0200 Subject: [PATCH] Prevent running applications from crashing when reinstalling eggs As suggested by Jim Ursetto this removes any previously installed files before installing ones by the same name. Fixes Bug #929. --- setup-api.scm | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/setup-api.scm b/setup-api.scm index 50ab484..cf9d8a1 100644 --- a/setup-api.scm +++ b/setup-api.scm @@ -509,6 +509,8 @@ (directory from))) (else (ensure-directory to) + (when (file-exists? to) + (run (,*remove-command* ,to))) (run (,*copy-command* ,(shellpath from) ,(shellpath to)))))) -- 1.7.6