[med-svn] r12517 - trunk/packages/babraham/fastqc/trunk/debian/patches

Andreas Tille tille at alioth.debian.org
Thu Nov 8 12:59:41 UTC 2012


Author: tille
Date: 2012-11-08 12:59:41 +0000 (Thu, 08 Nov 2012)
New Revision: 12517

Added:
   trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch
Modified:
   trunk/packages/babraham/fastqc/trunk/debian/patches/series
Log:
Fix broken help menu issue


Added: trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch
===================================================================
--- trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch	                        (rev 0)
+++ trunk/packages/babraham/fastqc/trunk/debian/patches/fix-help-call.patch	2012-11-08 12:59:41 UTC (rev 12517)
@@ -0,0 +1,18 @@
+From: Andreas Tille <tille at debian.org>
+Subject: The original way to open Help text ends up in an exception
+ Setting the explicite file name as well as avoiding the call to
+   ClassLoader.getSystemResource
+ helps fixing this.  Specifically the later is important, see
+   https://lists.debian.org/debian-med/2012/11/msg00073.html
+
+--- a/uk/ac/babraham/FastQC/FastQCMenuBar.java
++++ b/uk/ac/babraham/FastQC/FastQCMenuBar.java
+@@ -132,7 +132,7 @@ public class FastQCMenuBar extends JMenu
+ 		}
+ 		else if (command.equals("help_contents")) {
+ 			try {
+-				new HelpDialog(application,new File(URLDecoder.decode(ClassLoader.getSystemResource("Help").getFile(),"UTF-8")));
++				new HelpDialog(application,new File(URLDecoder.decode("/usr/share/fastqc/Help","UTF-8")));
+ 			} 
+ 			catch (UnsupportedEncodingException e1) {
+ 				e1.printStackTrace();

Modified: trunk/packages/babraham/fastqc/trunk/debian/patches/series
===================================================================
--- trunk/packages/babraham/fastqc/trunk/debian/patches/series	2012-11-08 10:28:43 UTC (rev 12516)
+++ trunk/packages/babraham/fastqc/trunk/debian/patches/series	2012-11-08 12:59:41 UTC (rev 12517)
@@ -1,2 +1,3 @@
 Makefile.patch
 fastqc.patch
+fix-help-call.patch




More information about the debian-med-commit mailing list