Do not enable apt-listbugs if the binary is not available
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 96-apt-listbugs
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