summaryrefslogtreecommitdiffstats
path: root/debian/browser.bug-script.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:34:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:34:35 +0000
commit63de81373e18709bf3cf805a9aea810d7105be62 (patch)
tree381c798425ec7b9d4634609f0ac776a4b3e7e309 /debian/browser.bug-script.in
parentAdding upstream version 115.7.0esr. (diff)
downloadfirefox-esr-63de81373e18709bf3cf805a9aea810d7105be62.tar.xz
firefox-esr-63de81373e18709bf3cf805a9aea810d7105be62.zip
Adding debian version 115.7.0esr-1~deb12u1.debian/115.7.0esr-1_deb12u1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/browser.bug-script.in')
-rw-r--r--debian/browser.bug-script.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/browser.bug-script.in b/debian/browser.bug-script.in
new file mode 100644
index 0000000000..a596a97a9d
--- /dev/null
+++ b/debian/browser.bug-script.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Don't run as root
+[ "$(id -u)" -eq 0 ] && exit
+
+tmp="$(mktemp)"
+tmp2="$(mktemp)"
+@browser@ -dump-addons-info "$tmp"
+awk -F: '$1 == "Location" {print $2}' "$tmp" | xargs dpkg -S 2>/dev/null > "$tmp2"
+echo >&3
+awk -F": " 'BEGIN { while (i = getline < "'"$tmp2"'") { p[$2] = $1; } }
+ { print $0 }
+ $1 == "Location" && p[$2] { print "Package: " p[$2] }' "$tmp" >&3
+
+echo >&3
+echo -- Addons package information >&3
+awk -F": " '{ print $1 }' "$tmp2" | sort -u | COLUMNS=79 xargs -r dpkg -l 2> /dev/null | grep ^i >&3
+
+rm -f "$tmp" "$tmp2"