diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-04-04 11:30:13 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-05-11 11:29:30 -0500 |
commit | 8cba8d6d1d37a30eab470d3288b5ad4601d496b6 (patch) | |
tree | da6575f5f7ca43ea8e56baec25d95677aeb22afe /lib | |
parent | 240c0643f214006ecf0321e3466fa3d5db7eb092 (diff) | |
download | spack-8cba8d6d1d37a30eab470d3288b5ad4601d496b6.tar.gz spack-8cba8d6d1d37a30eab470d3288b5ad4601d496b6.tar.bz2 spack-8cba8d6d1d37a30eab470d3288b5ad4601d496b6.tar.xz spack-8cba8d6d1d37a30eab470d3288b5ad4601d496b6.zip |
Add default global variables for licensing information
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/package.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 8e6cf32954..6c7f550e00 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -374,6 +374,19 @@ class Package(object): if not hasattr(self, 'list_depth'): self.list_depth = 1 + # Set default licensing information + if not hasattr(self, 'license_required'): + self.license_required = False + + if not hasattr(self, 'license_files'): + self.license_files = [] + + if not hasattr(self, 'license_vars'): + self.license_vars = [] + + if not hasattr(self, 'license_url'): + self.license_url = None + # Set up some internal variables for timing. self._fetch_time = 0.0 self._total_time = 0.0 |