--- a/debian/changelog Fri Nov 16 11:13:10 2007 +0100
+++ b/debian/changelog Mon Nov 19 12:50:02 2007 +0100
@@ -1,3 +1,10 @@ grml-live (0.0.9) unstable; urgency=low
+grml-live (0.0.10) unstable; urgency=low
+
+ * Do not enable apt-listbugs if the binary is not available.
+ [Testing: issue340]
+
+ -- Michael Prokop <mika@grml.org> Mon, 19 Nov 2007 12:49:37 +0100
+
grml-live (0.0.9) unstable; urgency=low
* Remove all files inside /root/ when using class RELEASE.
--- a/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs Fri Nov 16 11:13:10 2007 +0100
+++ b/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs Mon Nov 19 12:50:02 2007 +0100
@@ -4,7 +4,7 @@
# 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: Sun Nov 04 22:40:43 CET 2007 [mika]
+# Latest change: Mon Nov 19 12:49:27 CET 2007 [mika]
################################################################################
set -e
@@ -21,7 +21,9 @@ fi
fi
if [ -r $target/etc/apt/apt.conf.d/10apt-listbugs ] ; then
- sed -i 's#//DPkg::#DPkg::#' $target/etc/apt/apt.conf.d/10apt-listbugs
+ if [ -x $target/usr/sbin/apt-listbugs ] ; then
+ sed -i 's#//DPkg::#DPkg::#' $target/etc/apt/apt.conf.d/10apt-listbugs
+ fi
fi
if ifclass RELEASE ; then