[SCM] mplayer packaging branch, karmic, updated. debian/1.0.rc3+svn20090426-1ubuntu10

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Thu Oct 15 15:59:21 UTC 2009


The following commit has been merged in the karmic branch:
commit d1b15f054dd6fa17b2e6fb5faeff1c29e532ea06
Author: Reinhard Tartler <siretart at tauware.de>
Date:   Thu Oct 8 13:09:15 2009 +0200

    install apport hook to include configuration files

diff --git a/debian/apport-hook.py b/debian/apport-hook.py
new file mode 100644
index 0000000..2845a0b
--- /dev/null
+++ b/debian/apport-hook.py
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+
+'''apport package hook for mplayer
+
+(c) 2009 Author: Reinhard Tartler <siretart at tauware.de>
+'''
+
+from apport.hookutils import *
+from os import path
+
+def add_info(report):
+    # Build System Environment
+    report['system'] = "distro = Ubuntu, architecture = %s, kernel = %s" % (command_output(['uname','-m']), command_output(['uname','-r']))
+
+    attach_related_packages(report, [
+            "libavcodec52",
+            "libavcodec-extra-52",
+            ])
+            
+    attach_file_if_exists(report, path.expanduser('~/.mplayer/config'), 'UserConf')
+    attach_file(report, '/etc/mplayer/mplayer.conf', 'SystemConf')
+
+## DEBUGING ##
+if __name__ == '__main__':
+    report = {}
+    add_info(report)
+    for key in report:
+        print '[%s]\n%s' % (key, report[key])
diff --git a/debian/rules b/debian/rules
index 1010967..328ea8d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -174,6 +174,8 @@ install-arch:
 	$(MAKE) install-mplayer-man-en DESTDIR=$(CURDIR)/debian/mplayer-nogui
 	install -D -m 644 debian/mplayer.conf \
 	                  $(CURDIR)/debian/mplayer-nogui/etc/mplayer/mplayer.conf
+	install -D -m 644 debian/apport-hook.py \
+	                  $(CURDIR)/debian/mplayer-nogui/usr/share/apport/package-hooks/source_mplayer.py
 	#install mencoder
 	$(MAKE) install-mencoder DESTDIR=$(CURDIR)/debian/mencoder
 	dh_link -p mencoder usr/share/man/man1/mplayer.1.gz usr/share/man/man1/mencoder.1.gz

-- 
mplayer packaging



More information about the pkg-multimedia-commits mailing list