diff -r 45c181e776d8 -r b9f68563d603 apt-feed-logbuch.sh --- 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"