[MAINTAINER UPDATE] security/freebsd-update

If `freebsd-update cron` fails due to a lack of internet
	connection, two emails will be sent -- one with the error
	message from fetch(1), and the other from freebsd-update
	reporting that patches could not be downloaded.

	This patch corrects this mis-behaviour and causes a single
	email to be sent in such an event; this will be included
	in a future version of the distfile.

PR:		ports/72310
Submitted by:	Colin Percival <cperciva@daemonology.net>
This commit is contained in:
Edwin Groothuis 2004-10-12 03:17:31 +00:00
parent 533e842958
commit ac8766ced4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118754
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= freebsd-update
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.daemonology.net/freebsd-update/

View File

@ -0,0 +1,11 @@
--- freebsd-update Sun Oct 3 21:08:21 2004
+++ freebsd-update Sun Oct 3 21:12:04 2004
@@ -371,7 +371,7 @@
# Fetch updates; send output to a file, and
# append a message in case of error.
- real-fetch-update > $WRKDIR/log ||
+ real-fetch-update > $WRKDIR/log 2>&1 ||
echo "Error fetching updates" >> $WRKDIR/log
# Send an email to root if $VERBOSE == yes, or