summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-07-18 11:33:24 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-07-18 11:33:24 +0000
commit1e5af0bf74e6b516aac206f40081ff44df047ddf (patch)
tree7591e9c24ca94df1ff052d6bbbc12229c0cbb764
parentirc/weechat: Fix build errors (diff)
Have the license qa check actually work.
Pointy hat: mat Sponsored by: Absolight
-rw-r--r--Mk/Scripts/qa.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index 29e3b9d2f767..389376663766 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -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."