• Keith Maxwell's avatar
    Better use license.lst in abuild sanitycheck · e476188c
    Keith Maxwell authored
    Before this change an invalid licence= in an APKBUILD will pass `abuild
    sanitycheck`. '/usr/share/spdx/license.lst' contains one licence per line.
    `grep -x` will match partial lines whereas `grep -w` will only match whole
    lines.
    
    An simple demonstration is with 'GPL-3.0' which is not a valid SPDX licence
    identifier. 'GPL-3.0-only' and 'GPL-3.0-or-later' are valid licences.
    
    ```
    $ grep --help
    BusyBox v1.30.1 (2019-04-26 06:26:16 UTC) multi-call binary.
    
    Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
    
    Search for PATTERN in FILEs (or stdin)
    
    
            -w      Match whole words only
            -x      Match whole lines only
    
    $ grep -w -F GPL-3.0 /usr/share/spdx/license.lst
    GPL-3.0-only
    GPL-3.0-or-later
    $ grep -x -F GPL-3.0 /usr/share/spdx/license.lst
    $
    ```
    e476188c
Name
Last commit
Last update
.devbuildrc Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
APKBUILD.5 Loading commit data...
Makefile Loading commit data...
abuild-fetch.c Loading commit data...
abuild-gzsplit.c Loading commit data...
abuild-keygen.in Loading commit data...
abuild-rmtemp.c Loading commit data...
abuild-sign.in Loading commit data...
abuild-sudo.c Loading commit data...
abuild-tar.c Loading commit data...
abuild.conf Loading commit data...
abuild.in Loading commit data...
abump.in Loading commit data...
apkbuild-cpan.in Loading commit data...
apkbuild-gem-resolver.in Loading commit data...
apkbuild-pypi.in Loading commit data...
apkgrel.in Loading commit data...
bootchartd Loading commit data...
buildlab.in Loading commit data...
checkapk.in Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
functions.sh.in Loading commit data...
newapkbuild.1 Loading commit data...
newapkbuild.in Loading commit data...
sample.APKBUILD Loading commit data...
sample.confd Loading commit data...
sample.initd Loading commit data...
sample.post-install Loading commit data...
sample.pre-install Loading commit data...