no logbuch entries on (apt-get|aptitude) download-only
authorarnold
Wed, 24 Oct 2012 13:41:45 +0200
changeset 9 b9f68563d603
parent 8 45c181e776d8
child 10 51b2226ad231
no logbuch entries on (apt-get|aptitude) download-only
apt-feed-logbuch.sh
debian/changelog
--- 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"
 
--- 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 <arnold@schlittermann.de>  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