diff options
author | Piotr Wójcik <chocimier@tlen.pl> | 2019-09-10 19:46:33 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2019-09-13 12:03:17 +0200 |
commit | 9898115e0cecec8235a587352fbbad73fd8e97d9 (patch) | |
tree | 7d0500f19e7fe5ecef746b93d2114d80ea16ead6 | |
parent | 398c230e952314f1c712b4c74aa05ae4bd638802 (diff) | |
download | xtools-9898115e0cecec8235a587352fbbad73fd8e97d9.tar.gz xtools-9898115e0cecec8235a587352fbbad73fd8e97d9.tar.xz xtools-9898115e0cecec8235a587352fbbad73fd8e97d9.zip |
xlint: Ask to not install GPL family and Apache licenses
Closes: #152 [via git-merge-pr]
-rwxr-xr-x | xlint | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlint b/xlint index 685a3f3..60e6ac9 100755 --- a/xlint +++ b/xlint @@ -249,6 +249,10 @@ for template; do for l in custom AGPL MIT BSD ISC; do scan "license=.*$l" "license '$l', but no use of vlicense" done + else + if ! grep license= "$template" | grep -Pqv -e 'license="(\b(LGPL|GPL|GFDL|Apache)-\S+(, )?)+"'; then + scan "vlicense" 'license '"$(grep -Po license='\K.+' "$template" | tr -d '",' | tr '\n' ' ')"'should not be installed' | once + fi fi : ${LICENSE_LIST:=/usr/share/spdx/license.lst} |