[pulseaudio] 01/01: initial bugscript

Felipe Sateler fsateler at moszumanska.debian.org
Mon Jun 30 13:51:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

fsateler pushed a commit to branch fsateler/bugscript
in repository pulseaudio.

commit 05fb559b025ad5e2d1aa31d5bf455623d49a04c5
Author: Felipe Sateler <fsateler at debian.org>
Date:   Fri Apr 18 19:22:44 2014 -0300

    initial bugscript
---
 debian/pulseaudio.bug-script | 53 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/debian/pulseaudio.bug-script b/debian/pulseaudio.bug-script
new file mode 100644
index 0000000..1c96dde
--- /dev/null
+++ b/debian/pulseaudio.bug-script
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+
+REPORTBUG_VERSION=$(dpkg-query -f '${source:Version}' -W reportbug)
+HAVE_ATTACHMENTS=$(dpkg --compare-versions "$REPORTBUG_VERSION" ge "6.5.0" && echo yes || echo no)
+
+function include_file() {
+	while [ -n "$1" ] ; do
+		if [ ! -f "$1" ] ; then
+			# file doesn't exist, just note that fact
+			echo "File '$1' does not exist" >&3
+			echo >&3
+		elif [ $HAVE_ATTACHMENTS = yes ] ; then
+			echo "-- BEGIN ATTACHMENTS --" >&3
+			echo $1 >&3
+			echo "-- END ATTACHMENTS --" >&3
+		else
+			echo "${1}:" >&3
+			cat "$1" >&3
+			echo >&3
+		fi
+		shift
+	done
+}
+
+function include_command() {
+	desc=$(echo "$@" | sed -e 's/[^[:alnum:]:_-]\+/_/g')
+	tmp=$(mktemp --tmpdir bug-pulseaudio-${desc}.XXXXXX)
+	"$@" &>$tmp
+	include_file $tmp
+	# delete cruft if possible
+	# for attachments we can't because it is not known when reportbug exits
+	if [ $HAVE_ATTACHMENTS = no ] ; then
+		rm $tmp
+	fi
+}
+
+# to see if we have a systemwide pulseaudio
+include_file /etc/default/pulseaudio
+
+# pulseaudio configuration
+include_file /etc/pulse/client.conf /etc/pulse/daemon.conf /etc/pulse/default.pa /etc/pulse/system.pa
+
+# Get alsa devices if possible
+if which aplay &>/dev/null ; then
+	include_command aplay -L
+fi
+
+include_command pactl list cards
+include_command pactl list sinks
+include_command pactl list modules
+include_command pactl info
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git



More information about the pkg-pulseaudio-devel mailing list