summaryrefslogtreecommitdiff
path: root/librewolf/debian/browser.bug-script.in
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-04-16 16:51:25 +0000
committerB. Stack <bgstack15@gmail.com>2022-04-16 16:51:25 +0000
commit4aa31a2f1a060439447f8de3b1674b6e0524c7e2 (patch)
treec6028dac4de4e3be8bfb49223ac931303e6c57d2 /librewolf/debian/browser.bug-script.in
parentMerge branch 'veracrypt-bump' into 'master' (diff)
parentlw 98.0 stackrpms rc1 (diff)
downloadstackrpms-4aa31a2f1a060439447f8de3b1674b6e0524c7e2.tar.gz
stackrpms-4aa31a2f1a060439447f8de3b1674b6e0524c7e2.tar.bz2
stackrpms-4aa31a2f1a060439447f8de3b1674b6e0524c7e2.zip
Merge branch 'librewolf-bump' into 'master'
librewolf 98 See merge request bgstack15/stackrpms!293
Diffstat (limited to 'librewolf/debian/browser.bug-script.in')
-rw-r--r--librewolf/debian/browser.bug-script.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/librewolf/debian/browser.bug-script.in b/librewolf/debian/browser.bug-script.in
new file mode 100644
index 0000000..a596a97
--- /dev/null
+++ b/librewolf/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"
bgstack15