robocode (1.6.2+dfsg-3) 02-use-versions.txt-from-usr-share-doc.diff

Summary

 robocode/robocode/manager/WindowManager.java |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

    
download this patch

Patch contents

## 02-use-versions.txt-from-usr-share-doc.diff by Chris Lamb <chris@chris-lamb.co.uk>
##
## Use the versions.txt installed by dh_installchangelogs

diff -urNad robocode~/robocode/robocode/manager/WindowManager.java robocode/robocode/robocode/manager/WindowManager.java
--- robocode.orig/robocode/robocode/manager/WindowManager.java	2010-02-09 16:48:11.000000000 +0000
+++ robocode/robocode/robocode/manager/WindowManager.java	2010-02-09 16:48:44.000000000 +0000
@@ -178,8 +178,7 @@
 
 	public void showVersionsTxt() {
 		showInBrowser(
-				"file://" + new File(FileUtil.getCwd(), "").getAbsoluteFile() + System.getProperty("file.separator")
-				+ "versions.txt");
+				"file:///usr/share/doc/robocode/changelog.gz");
 	}
 
 	public void showHelpApi() {