Commit 683225c0 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

abuild: allow SPDX license operators

valid operators are AND OR WITH
parent 38620eeb
......@@ -841,10 +841,12 @@ check_maintainer() {
check_license() {
local ret=0
local license_list=/usr/share/spdx/license.lst
local exclude="AND OR WITH"
if options_has "!spdx" || ! [ -f "$license_list" ]; then
return 0
local i; for i in $license; do
list_has "$i" $exclude && continue
if ! grep -q -w -F "$i" "$license_list"; then
warning "\"$i\" is not a known license"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment