Add /etc/apt/listbugs 0.3.32
authorMichael Prokop <mika@grml.org>
Sat, 13 Oct 2007 22:23:18 +0000 (00:23 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 13 Oct 2007 22:23:18 +0000 (00:23 +0200)
debian/changelog
etc/apt/listbugs [new file with mode: 0755]

index 4273c1c..16819ee 100644 (file)
@@ -1,3 +1,10 @@
+grml-etc-core (0.3.32) unstable; urgency=low
+
+  * Add /etc/apt/listbugs: display known bugs of currently running
+    system. This script is used inside grml-live.
+
+ -- Michael Prokop <mika@grml.org>  Sun, 14 Oct 2007 00:22:38 +0200
+
 grml-etc-core (0.3.31) unstable; urgency=low
 
   [ Michael Prokop ]
diff --git a/etc/apt/listbugs b/etc/apt/listbugs
new file mode 100755 (executable)
index 0000000..ea20560
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Filename:      /etc/apt/listbugs
+# Purpose:       display bugs of current running system (e.g. used inside grml-live)
+# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2 or any later version.
+# Latest change: Son Okt 14 00:21:54 CEST 2007 [mika]
+################################################################################
+
+[ -n "$SEVERITY" ] || SEVERITY="critical,grave,serious"
+
+if ! [ -x /usr/sbin/apt-listbugs ] ; then
+   echo "Error: /usr/sbin/apt-listbugs not available. Exiting."
+   exit 1
+fi
+
+if ! [ -x /usr/bin/apt-show-source ] ; then
+   echo "Error: /usr/bin/apt-show-source not available. Exiting."
+   exit 1
+fi
+
+apt-listbugs -s $SEVERITY list \
+    $(apt-show-source | grep -v -e 'not installed' -e '--------------' -e \
+    'Version' | awk '{print $4;}' | grep -v '^[() ]*$'| sort | uniq)
+
+# $ROOTCMD apt-listbugs -s $SEVERITY list \
+#          $(dpkg --get-selections| grep '       install' | awk '{print $1})
+
+## END OF FILE #################################################################