id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	difficulty	ghcversion	platform
192	unlink files before copying over them	duncan		"From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336417

{{{
It would be nice if cabal would unlink destination files before
installing over them, rather than just calling ""copyFile"". It appears
that when ""copyFile"" finds that a destination file already exists,
rather than removing it, it tries to open and truncate it, which leads
cabal to fail with the following error message when a new version of a
running program is installed:

*** Exception: bar: copyFile: resource busy (Text file busy)

The commonly-used 'install' command does not suffer from this bug.
}}}

So I think we need to make a portable installFile function that does the right thing on Unix and Windows. At the same time we should think about permissions and bug #93."	defect	closed	normal		Cabal library	1.2.3.0	normal	fixed			normal	6.8.1	Linux
