From 25a97ad979ddcb709bb4326db94408ae9861bb88 Mon Sep 17 00:00:00 2001 From: athimm Date: Jun 03 2007 09:23:23 +0000 Subject: Make autoupdates a bit more quiet. --- diff --git a/apt.cron b/apt.cron index 8c37b99..dbb99a7 100644 --- a/apt.cron +++ b/apt.cron @@ -8,4 +8,9 @@ [ $PRESERVE_CONFIG == "yes" ] && OPTS="$OPTS -o rpm::preserve-config=true" OPTS="$OPTS $EXTRA_OPTIONS" -/usr/bin/apt-get -q update && /usr/bin/apt-get -q -y $OPTS dist-upgrade +if /usr/bin/apt-get -qq update; then + /usr/bin/apt-get dist-upgrade -qq --check-only + if [ $? -eq 100 ]; then + /usr/bin/apt-get -q -y $OPTS dist-upgrade + fi +fi diff --git a/apt.spec b/apt.spec index b4122ed..14773ad 100644 --- a/apt.spec +++ b/apt.spec @@ -6,7 +6,7 @@ Summary: Debian's Advanced Packaging Tool with RPM support Name: apt Version: 0.5.15lorg3.2 -Release: 9%{?dist} +Release: 10%{?dist} Group: System Environment/Base URL: http://apt-rpm.org/ License: GPL @@ -290,6 +290,10 @@ fi %changelog +* Sun Jun 3 2007 Axel Thimm - 0.5.15lorg3.2-10 +- Make autoupdates a bit more quiet (Pierre Ossman + ). + * Sat Dec 23 2006 Axel Thimm - 0.5.15lorg3.2-9 - Add a patch to notify user and rebuild the cache on cache corruption.