Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Always use anticongestion function in 410.pkg-audit
Yasuhiro KIMURA committed 7 years ago
commit a151ff425dd1a5324f9c81322abc51b5d44e81cc
parent d0618dc
1 file changed +1 -7
modified scripts/periodic/410.pkg-audit.in
@@ -69,13 +69,7 @@ audit_pkgs() {
		$(( 86400 \* "${security_status_pkgaudit_expiry}" )) \
		-le $(( ${now} - ${then} + 600 )) ]; then
		# When non-interactive, sleep to reduce congestion on mirrors
-
		if [ -n "$anticongestion_sleeptime" ]; then
-
			# In FreeBSD 12.0 the anticongestion function should be
-
			# used instead of a hard-coded sleep
-
			anticongestion
-
		else
-
			sleep `jot -r 1 0 3600`
-
		fi
+
		anticongestion
		${pkgcmd} ${pkgargs} audit -F $q || { rc=$?; [ $rc -lt 3 ] && rc=3; }
	else
		echo -n 'Database fetched: '