From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- packages/midpath/files/fix-openfile.patch | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 packages/midpath/files/fix-openfile.patch (limited to 'packages/midpath/files/fix-openfile.patch') diff --git a/packages/midpath/files/fix-openfile.patch b/packages/midpath/files/fix-openfile.patch deleted file mode 100644 index df677e1011..0000000000 --- a/packages/midpath/files/fix-openfile.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java -=================================================================== ---- midpath-0.3rc2.orig/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java 2008-05-19 13:56:18.000000000 +0200 -+++ midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java 2008-12-17 07:08:54.000000000 +0100 -@@ -181,10 +181,14 @@ - - public void openForRead() throws IOException { - if (randomAccessFile == null) { -- //stream = new FileRandomAccessStream(file); -- randomAccessFile = new RandomAccessFile(file, "rws"); -+ // Try to get maximum rights to avoid closing the stream if openForWrite is called next -+ if (file.canWrite()) { -+ randomAccessFile = new RandomAccessFile(file, "rws"); -+ } else { -+ randomAccessFile = new RandomAccessFile(file, "r"); -+ } - } -- } -+ } - - public void openForWrite() throws IOException { - if (randomAccessFile == null) { -- cgit v1.2.3