fix: don't abort on missing apt/history.log
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Wed, 08 Jun 2011 15:56:23 +0200
changeset 4 bdc9a8899333
parent 1 54d18ebcdf02
child 5 34214775a77a
fix: don't abort on missing apt/history.log
99iusupgrade
--- a/99iusupgrade	Fri Apr 29 16:34:44 2011 +0200
+++ b/99iusupgrade	Wed Jun 08 15:56:23 2011 +0200
@@ -1,6 +1,6 @@
 DPkg {
   Pre-Invoke {
-    "wc -l < /var/log/apt/history.log > /tmp/lines_count.dat";
+    "wc -l < /var/log/apt/history.log > /tmp/lines_count.dat || true";
   };
   Post-Invoke {
     "test -x /usr/sbin/apt-feed-logbuch && /usr/sbin/apt-feed-logbuch $(echo $PPID) || true";