abuild: allow SPDX license operators
valid operators are AND OR WITH
This commit is contained in:
parent
38620eeb9f
commit
683225c064
@ -841,10 +841,12 @@ check_maintainer() {
|
|||||||
check_license() {
|
check_license() {
|
||||||
local ret=0
|
local ret=0
|
||||||
local license_list=/usr/share/spdx/license.lst
|
local license_list=/usr/share/spdx/license.lst
|
||||||
|
local exclude="AND OR WITH"
|
||||||
if options_has "!spdx" || ! [ -f "$license_list" ]; then
|
if options_has "!spdx" || ! [ -f "$license_list" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
local i; for i in $license; do
|
local i; for i in $license; do
|
||||||
|
list_has "$i" $exclude && continue
|
||||||
if ! grep -q -w -F "$i" "$license_list"; then
|
if ! grep -q -w -F "$i" "$license_list"; then
|
||||||
ret=1
|
ret=1
|
||||||
warning "\"$i\" is not a known license"
|
warning "\"$i\" is not a known license"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user