Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Be sure to fetch the database if none is found
Alberto Villa committed 13 years ago
commit d841e72686681e3bd4b772bf487cfbda4e0dea78
parent 676b1f2
1 file changed +3 -3
modified scripts/periodic/410.pkg-audit
@@ -56,11 +56,11 @@ case "${daily_status_security_pkgaudit_enable:-YES}" in
		echo
                echo "Checking for packages with security vulnerabilities:"
                echo
-
		then=`stat -f '%m' "${auditfile}"` || rc=3
+
		then=`stat -f '%m' "${auditfile}" 2> /dev/null` || rc=3
		now=`date +%s` || rc=3
-
		[ $rc -ne 0 ] && break
		# Add 10 minutes of padding since the check is in seconds.
-
		if [ $(( 86400 \* "${daily_status_security_pkgaudit_expiry:-2}" )) \
+
		if [ $rc -ne 0 -o \
+
			$(( 86400 \* "${daily_status_security_pkgaudit_expiry:-2}" )) \
			-le $(( ${now} - ${then} + 600 )) ]; then
			echo "Fetching a current audit database:"
			echo