Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg -N returns 0 on success >0 on not ready
Bryan Drewery committed 13 years ago
commit dbfa0f904544dfcaf2e0441c3103abc86571dc17
parent 9409be0
5 files changed +5 -5
modified scripts/periodic/400.status-pkg
@@ -15,7 +15,7 @@ case "$weekly_status_pkg_enable" in
	echo
	echo 'Checking for out of date packages:'

-
	if ${pkgcmd} -N >/dev/null 2>&1 ; then
+
	if ! ${pkgcmd} -N >/dev/null 2>&1 ; then
	    echo 'status-pkg is enabled but pkg is not used'
	    rc=2
	else
modified scripts/periodic/410.pkg-audit
@@ -55,7 +55,7 @@ case "${daily_status_security_pkgaudit_enable:-YES}" in
	echo
	echo 'Checking for packages with security vulnerabilities:'

-
	if ${pkgcmd} -N >/dev/null 2>&1 ; then
+
	if ! ${pkgcmd} -N >/dev/null 2>&1 ; then
		echo 'pkg-audit is enabled but pkg is not used'
		rc=2
	else
modified scripts/periodic/411.pkg-backup
@@ -18,7 +18,7 @@ case "${daily_backup_pkgng_enable:-YES}" in
	bak_file="${bak}/pkgng.db"
	pkgcmd=/usr/local/sbin/pkg

-
	if ${pkgcmd} -N >/dev/null 2>&1 ; then
+
	if ! ${pkgcmd} -N >/dev/null 2>&1 ; then
		echo 'pkg-backup is enabled but pkg is not used'
		rc=2
 	else
modified scripts/periodic/460.pkg-checksum
@@ -17,7 +17,7 @@ case "${daily_status_security_pkg_checksum_enable}" in
	echo
	echo 'Checking for packages with mismatched checksums:'

-
	if ${pkgcmd} -N >/dev/null 2>&1 ; then
+
	if ! ${pkgcmd} -N >/dev/null 2>&1 ; then
		echo 'pkg-checksum is enabled but pkg is not used'
		rc=2
	else
modified scripts/periodic/490.status-pkg-changes
@@ -15,7 +15,7 @@ case "$daily_status_pkg_changes_enable" in
	echo
	echo 'Changes in installed packages:'

-
	if ${pkgcmd} -N >/dev/null 2>&1 ; then
+
	if ! ${pkgcmd} -N >/dev/null 2>&1 ; then
		echo 'status-pkg-changes is enabled but pkg is not used'
		rc=2
	else