From ccd5a5fb7bfc9469cc8215a894e51267484b48bf Mon Sep 17 00:00:00 2001 From: Todd Gamblin <tgamblin@llnl.gov> Date: Mon, 22 Oct 2018 11:13:30 -0700 Subject: 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. --- lib/spack/spack/cmd/license.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3-70-g09d2