only announce fetching vulnerabilities file if we do. trunk
authorchristos <christos@NetBSD.org>
Fri, 03 Aug 2012 10:52:46 +0000
branchtrunk
changeset 212505 b7b4f303c35a
parent 212504 7cb68ff7ac97
child 212506 1a289dc260b1
only announce fetching vulnerabilities file if we do.
etc/daily
--- a/etc/daily	Fri Aug 03 09:11:31 2012 +0000
+++ b/etc/daily	Fri Aug 03 10:52:46 2012 +0000
@@ -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 @@
 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