[Rake-devel] [PATCH] safe_ln
Assaph Mehr
assaph at gmail.com
Thu Mar 30 18:34:39 EST 2006
Hi,
Am using ruby 1.8.4 on WinXP through the OneClick installer (RC 1
build). I came across an issue with Rake's PackageTask using safe_ln.
It appear that ln now throws a NotImplemented error on Windows, rather
than an Errno. This fixes it:
--- rake.rb 2006-03-31 10:21:13.439299300 +1100
+++ rake.rb.patched 2006-03-31 10:19:15.482491100 +1100
@@ -603,7 +603,7 @@
else
begin
ln(*args)
- rescue Errno::EOPNOTSUPP, Errno::EXDEV
+ rescue Errno::EOPNOTSUPP, Errno::EXDEV, NotImplementedError
LN_SUPPORTED[0] = false
cp(*args)
end
I haven't done a full scale investigation, I just saw the error and
the fix seems obvious and trivial. If you need me to carry out more
tests just let me know.
Cheers,
Assaph
More information about the Rake-devel
mailing list