apt-feed-logbuch.sh
changeset 9 b9f68563d603
parent 5 34214775a77a
child 10 51b2226ad231
--- a/apt-feed-logbuch.sh	Wed Jun 08 16:00:27 2011 +0200
+++ b/apt-feed-logbuch.sh	Wed Oct 24 13:41:45 2012 +0200
@@ -3,7 +3,7 @@
 # automaticly update logbuch
 # if using apt-get or aptitude command
 #
-# (C) 2011 by Christian Arnold - Schlittermann internet & unix support
+# (C) 2012 by Christian Arnold - Schlittermann internet & unix support
 
 set -e
 
@@ -30,6 +30,14 @@
 fi
 
 APT_CMD=$(ps -p $1 -o args=)
+
+# skip download-only from logbuch
+if echo $APT_CMD | grep -q "[[:space:]]\+-d\|-dy\|-yd"; then
+	exit 0
+elif echo $APT_CMD | grep -q "[[:space:]]\+--download-only"; then
+	exit 0
+fi
+
 APT_TMP="/tmp/$$.tmp"
 APT_OUT="/tmp/$$.out"