Module Name:    src
Committed By:   christos
Date:           Fri Aug  3 10:52:46 UTC 2012

Modified Files:
        src/etc: daily

Log Message:
only announce fetching vulnerabilities file if we do.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/etc/daily

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/daily
diff -u src/etc/daily:1.85 src/etc/daily:1.86
--- src/etc/daily:1.85	Tue Jul 31 05:23:09 2012
+++ src/etc/daily	Fri Aug  3 06:52:46 2012
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.85 2012/07/31 09:23:09 christos Exp $
+#	$NetBSD: daily,v 1.86 2012/08/03 10:52:46 christos Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -258,13 +258,13 @@ if checkyesno run_rdist && [ -f /etc/Dis
 fi
 
 if pkg_info ${_compat_K_flag} -q -E '*'; then
-	echo ""
-	echo "Fetching package vulnerabilities database:"
 	if [ -z "fetch_pkg_vulnerabilities" ]; then
 		echo "fetch_pkg_vulnerabilities is not set in daily.conf(5)."
 		echo "You should set it to YES to enable vulnerability checks"
 		echo "or set it to NO to get rid of this warning."
 	elif checkyesno fetch_pkg_vulnerabilities; then
+		echo ""
+		echo "Fetching package vulnerabilities database:"
 		( umask 022 && pkg_admin ${_compat_K_flag} \
 		    fetch-pkg-vulnerabilities -u )
 	fi

Reply via email to