Do not enable apt-listbugs if the binary is not available
authorMichael Prokop <mika@grml.org>
Mon, 19 Nov 2007 11:50:02 +0000 (12:50 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 19 Nov 2007 11:50:02 +0000 (12:50 +0100)
debian/changelog
etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs

index 595d797..91a83d3 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 4650cad..a6ed5a9 100755 (executable)
@@ -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 @@ if [ -x $target/usr/bin/apt-listchanges ] ; then
 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