diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:23:08 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:23:08 +0000 |
commit | 25161eab0977cf62f77af868be3fc698888776ea (patch) | |
tree | ea9037f8066dfc7c0a7d7b898822a56fec71c324 /debian/browser.bug-script.in | |
parent | Adding upstream version 110.0.1. (diff) | |
download | firefox-25161eab0977cf62f77af868be3fc698888776ea.tar.xz firefox-25161eab0977cf62f77af868be3fc698888776ea.zip |
Adding debian version 110.0.1-1.debian/110.0.1-1debian
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.in | 19 |
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" |