Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2018 11:33:24 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474853 - head/Mk/Scripts
Message-ID:  <201807181133.w6IBXO5l028162@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Wed Jul 18 11:33:24 2018
New Revision: 474853
URL: https://svnweb.freebsd.org/changeset/ports/474853

Log:
  Have the license qa check actually work.
  
  Pointy hat:	mat
  Sponsored by:	Absolight

Modified:
  head/Mk/Scripts/qa.sh   (contents, props changed)

Modified: head/Mk/Scripts/qa.sh
==============================================================================
--- head/Mk/Scripts/qa.sh	Wed Jul 18 11:27:24 2018	(r474852)
+++ head/Mk/Scripts/qa.sh	Wed Jul 18 11:33:24 2018	(r474853)
@@ -916,16 +916,18 @@ flavors()
 
 license()
 {
-	local autoaccept pkgmirror #distsell distmirror pkgsell
+	local lic autoaccept pkgmirror #distsell distmirror pkgsell
 
 	if [ -n "$LICENSE" ]; then
-		case "$LICENSE_PERMS" in
-			auto-accept) autoaccept=1 ;;
-			#dist-mirror) distmirror=1 ;;
-			#dist-sell)   distsell=1   ;;
-			pkg-mirror)  pkgmirror=1  ;;
-			#pkg-sell)    pkgsell=1    ;;
-		esac
+		for lic in $LICENSE_PERMS; do
+			case "$lic" in
+				auto-accept) autoaccept=1 ;;
+				#dist-mirror) distmirror=1 ;;
+				#dist-sell)   distsell=1   ;;
+				pkg-mirror)  pkgmirror=1  ;;
+				#pkg-sell)    pkgsell=1    ;;
+			esac
+		done
 
 		if [ -z "$autoaccept" ]; then
 			warn "License is not auto-accepted, packages will not be built, ports depending on this one will be ignored."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807181133.w6IBXO5l028162>