# HG changeset patch # User arnold # Date 1351078905 -7200 # Node ID b9f68563d603054aab29fc3728a7565930974aa4 # Parent 45c181e776d862d297fdd958b16bbfc7cc0742b6 no logbuch entries on (apt-get|aptitude) download-only 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" diff -r 45c181e776d8 -r b9f68563d603 debian/changelog --- a/debian/changelog Wed Jun 08 16:00:27 2011 +0200 +++ b/debian/changelog Wed Oct 24 13:41:45 2012 +0200 @@ -1,3 +1,9 @@ +ius.upgrade (1.2-1) squeeze; urgency=low + + * no logbuch entries on (apt-get|aptitude) download-only + + -- Christian Arnold Wed, 24 Oct 2012 13:22:29 +0200 + ius.upgrade (1.1-0) squeeze; urgency=low * new upstream, fixed exits on missing history or line count file