[SCM] eclipse - Powerful IDE written in java - Debian package. branch, master, updated. f180c5e87c7ff0718ee8eca5b7df3f3e64bcb547
Benjamin Drung
bdrung-guest at alioth.debian.org
Thu Apr 15 18:51:15 UTC 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "eclipse - Powerful IDE written in java - Debian package.".
The branch, master has been updated
via f180c5e87c7ff0718ee8eca5b7df3f3e64bcb547 (commit)
from 6194562c15909ba80a7f26bdb7dc0da2475ab85a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f180c5e87c7ff0718ee8eca5b7df3f3e64bcb547
Author: Benjamin Drung <bdrung at ubuntu.com>
Date: Thu Apr 15 20:51:05 2010 +0200
Add apport hook to collect more useful data for bug reports.
-----------------------------------------------------------------------
Summary of changes:
debian/eclipse-platform.install | 1 +
debian/source_eclipse.py | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/debian/eclipse-platform.install b/debian/eclipse-platform.install
index 1372fb6..3a3f9a8 100644
--- a/debian/eclipse-platform.install
+++ b/debian/eclipse-platform.install
@@ -227,3 +227,4 @@ usr/lib/eclipse/plugins/org.sat4j.pb_*.jar
usr/lib/eclipse/startup.jar
usr/share/applications
usr/share/man
+debian/source_eclipse.py usr/share/apport/package-hooks
diff --git a/debian/source_eclipse.py b/debian/source_eclipse.py
new file mode 100644
index 0000000..6fecac5
--- /dev/null
+++ b/debian/source_eclipse.py
@@ -0,0 +1,34 @@
+'''Apport package hook for Eclipse
+
+Copyright 2010 Benjamin Drung <bdrung at ubuntu.com>
+License: EPL-1.0 | GPL-2+
+'''
+
+import apport.hookutils
+import glob
+import os
+
+def add_info(report):
+ apport.hookutils.attach_conffiles(report, "eclipse-platform")
+
+ # Guess workspace if we fail to detect it
+ workspace = "~/workspace"
+
+ # try to detect the workspace directory
+ preffile_pattern = "~/.eclipse/org.eclipse.platform_*/configuration/.settings/org.eclipse.ui.ide.prefs"
+ for preffile in glob.glob(os.path.expanduser(preffile_pattern)):
+ lines = open(preffile).readlines()
+ lines = filter(lambda l: l.startswith("RECENT_WORKSPACES="), lines)
+ if len(lines) > 0:
+ workspaces = lines[0].split("=")[1]
+ # workspaces are separated by "\n" - we take the first item
+ workspace = workspaces.split("\\n")[0]
+
+ # workspace/.metadata/.log
+ logfile = os.path.join(workspace, ".metadata", ".log")
+ apport.hookutils.attach_file_if_exists(report, logfile, "workspace.metadata.log")
+
+ # list of xulrunner libraries
+ xulrunner_list = glob.glob("/usr/lib/xulrunner-[0-9]*")
+ xulrunner_list.sort()
+ report["xulrunner-versions"] = "\n".join(xulrunner_list)
hooks/post-receive
--
eclipse - Powerful IDE written in java - Debian package.
More information about the pkg-java-commits
mailing list