Blob Blame History Raw
diff -ur ../system-switch-java-1.1.0.orig/switch_java_functions.py.in ./switch_java_functions.py.in
--- ../system-switch-java-1.1.0.orig/switch_java_functions.py.in	2007-06-25 01:37:22.000000000 -0400
+++ ./switch_java_functions.py.in	2007-07-21 00:13:05.000000000 -0400
@@ -130,6 +130,10 @@
         # index points to target.
         while index < len(lines):
             line = lines[index]
+            # accept trailing blank lines at the end of the file.
+            # Debian's update-alternatives requires this.
+            if line == '\n':
+                break
             alternatives.append(\
                 line[len('/usr/lib/jvm/jre-'):-(len('/bin/java') + 1)])
             index = index + 1