Package: cron-apt Version: 0.2.3 Severity: wishlist Tags: patch Hi,
please consider adding support for a file - if exists - stops cron-apt from doing its work when called. This is important for mobile computers which might intermittently be connected via connections which are very expensive. In these situations, it might be desireable to keep cron-apt from downloading anything from the Internet. If such a connection is up, the file /etc/cron-apt/refrain would be created, and cron-apt will silently terminate if that file exists. The attached patch implements this. Please consider applying. Greetings Marc -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.11.7-scyw00225 Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1) Versions of packages cron-apt depends on: ii apt 0.5.28.6 Advanced front-end for dpkg ii bash 3.0-14 The GNU Bourne Again SHell ii debianutils 2.13.2 Miscellaneous utilities specific t ii mailx 1:8.1.2-0.20040524cvs-4 A simple mail user agent -- no debconf information
--- /usr/sbin/cron-apt 2005-02-27 15:47:51.000000000 +0100 +++ cron-apt 2005-04-20 09:25:04.121607832 +0200 @@ -357,6 +357,12 @@ mkdir -p "$MAILCHDIR" fi +################## terminate if /etc/cron-apt/refrain exists ################## + +if [ -e "/etc/cron-apt/refrain" ]; then + exit 0 +fi + ############################### sleep ######################################### echo "CRON-APT RUN [$CONFIG]: $(date)" > $INITLOG