Blame SOURCES/extlib-install.patch

0f45c0
--- extlib-1.5.1.orig/install.ml	2008-02-12 18:01:34.000000000 +0000
0f45c0
+++ extlib-1.5.1/install.ml	2008-02-12 18:03:26.000000000 +0000
0f45c0
@@ -64,10 +64,18 @@
0f45c0
 		print_endline ("Installing " ^ file);
0f45c0
 		let path = dest ^ file in
0f45c0
 		(try Sys.remove path with _ -> ());
0f45c0
-		try
0f45c0
-			Sys.rename file path;
0f45c0
-		with
0f45c0
-			_ -> failwith "Aborted"
0f45c0
+		let ichan = open_in file in
0f45c0
+		let ochan = open_out path in
0f45c0
+		let buf = String.create 1024 in
0f45c0
+		let rec loop () =
0f45c0
+			let len = input ichan buf 0 1024 in
0f45c0
+			if len > 0 then (
0f45c0
+				output ochan buf 0 len;
0f45c0
+				loop ()
0f45c0
+			)
0f45c0
+		in
0f45c0
+		loop ();
0f45c0
+		Sys.remove file
0f45c0
 	end
0f45c0
 
0f45c0
 let complete_path p =