svn commit: r338729 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Sun Jan 5 01:16:34 UTC 2014


Author: bapt
Date: Sun Jan  5 01:16:34 2014
New Revision: 338729
URL: http://svnweb.freebsd.org/changeset/ports/338729

Log:
  Reinvokes portaudit a second time in case a problem has been reported. So if a refetch (or another temporary problem) caused the error it will succeed on a second attempt, while a correctly detected vulnerability will be detected a second time.
  
  PR:		ports/168479
  Submitted by:	Michael Gmelin <freebsd at grem.de>

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Sun Jan  5 01:06:11 2014	(r338728)
+++ head/Mk/bsd.port.mk	Sun Jan  5 01:16:34 2014	(r338729)
@@ -3338,6 +3338,11 @@ check-vulnerable:
 			vlist=`${LOCALBASE}/sbin/portaudit -X 14 "${PKGNAME}" \
 				2>&1 | grep -vE '^[0-9]+ problem\(s\) found.' \
 				|| true`; \
+			if [ -n "$$vlist" ]; then \
+				vlist=`${LOCALBASE}/sbin/portaudit -X 14 "${PKGNAME}" \
+					2>&1 | grep -vE '^[0-9]+ problem\(s\) found.' \
+					|| true`; \
+			fi ; \
 		else \
 			${ECHO_MSG} "===>  portaudit database exists, however, portaudit is not installed!"; \
 		fi; \


More information about the svn-ports-all mailing list