diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-04-11 20:17:43 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-04-11 20:33:39 +0000 |
commit | 683225c0640ed9da3727be6ed3831860e7b56f6d (patch) | |
tree | 48e8a0fd89e6dd37585b96fd031b23f5d70098a0 /abuild.in | |
parent | 38620eeb9fd3510ed20ad5bd465f24bfb5c0faaa (diff) | |
download | abuild-683225c0640ed9da3727be6ed3831860e7b56f6d.tar.gz abuild-683225c0640ed9da3727be6ed3831860e7b56f6d.tar.bz2 abuild-683225c0640ed9da3727be6ed3831860e7b56f6d.tar.xz abuild-683225c0640ed9da3727be6ed3831860e7b56f6d.zip |
abuild: allow SPDX license operators
valid operators are AND OR WITH
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 fi local i; for i in $license; do + list_has "$i" $exclude && continue if ! grep -q -w -F "$i" "$license_list"; then ret=1 warning "\"$i\" is not a known license" |