2 # Filename: /etc/apt/listbugs
3 # Purpose: display bugs of current running system (e.g. used inside grml-live)
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 # Latest change: Son Okt 14 00:21:54 CEST 2007 [mika]
8 ################################################################################
10 [ -n "$SEVERITY" ] || SEVERITY="critical,grave,serious"
12 if ! [ -x /usr/sbin/apt-listbugs ] ; then
13 echo "Error: /usr/sbin/apt-listbugs not available. Exiting."
17 if ! [ -x /usr/bin/apt-show-source ] ; then
18 echo "Error: /usr/bin/apt-show-source not available. Exiting."
22 apt-listbugs -s $SEVERITY list \
23 $(apt-show-source | grep -v -e 'not installed' -e '--------------' -e \
24 'Version' | awk '{print $4;}' | grep -v '^[() ]*$'| sort | uniq)
26 # $ROOTCMD apt-listbugs -s $SEVERITY list \
27 # $(dpkg --get-selections| grep ' install' | awk '{print $1})
29 ## END OF FILE #################################################################