From 826a2e7f8c7786acb3b5d2217f19814f314289ab Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 5 Jan 2022 16:21:31 -0500 Subject: add initial lw d/ contents --- librewolf/debian/browser.bug-script.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 librewolf/debian/browser.bug-script.in (limited to 'librewolf/debian/browser.bug-script.in') 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" -- cgit