summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-10-22 11:13:30 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2018-10-22 11:13:30 -0700
commitccd5a5fb7bfc9469cc8215a894e51267484b48bf (patch)
treea63c558f3ff055c9e1fd5963fb8ac3331a525a32
parentdb98418fef75dc36b1fa562903f244ced05234ec (diff)
downloadspack-ccd5a5fb7bfc9469cc8215a894e51267484b48bf.tar.gz
spack-ccd5a5fb7bfc9469cc8215a894e51267484b48bf.tar.bz2
spack-ccd5a5fb7bfc9469cc8215a894e51267484b48bf.tar.xz
spack-ccd5a5fb7bfc9469cc8215a894e51267484b48bf.zip
license: exclude ignored files from the license check (#9578)
Previously, if you built the docs, you'd get license errors for generated .rst files. This removes them from the list of licensed files.
-rw-r--r--lib/spack/spack/cmd/license.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/license.py b/lib/spack/spack/cmd/license.py
index feb82fe0ed..df208d8bbe 100644
--- a/lib/spack/spack/cmd/license.py
+++ b/lib/spack/spack/cmd/license.py
@@ -40,7 +40,7 @@ licensed_files = [
r'^lib/spack/env/cc$',
# rst files in documentation
- r'^lib/spack/docs/.*\.rst$',
+ r'^lib/spack/docs/(?!command_index|spack|llnl).*\.rst$',
r'^lib/spack/docs/.*\.py$',
# 2 files in external