PackageBase: add a list of metadata attributes

These attributes are ignored when doing a content hash of a package.
This commit is contained in:
Peter Scheibel 2018-02-21 11:36:11 -05:00 committed by Todd Gamblin
parent 39cb9d0397
commit db81d19ddd

View file

@ -563,6 +563,10 @@ class SomePackage(Package):
#: Do not include @ here in order not to unnecessarily ping the users.
maintainers = []
#: List of attributes which affect do not affect a package's content.
metadata_attrs = ['homepage', 'url', 'list_url', 'extendable', 'parallel',
'make_jobs']
def __init__(self, spec):
# this determines how the package should be built.
self.spec = spec