diff options
author | Greg Becker <becker33@llnl.gov> | 2019-07-19 20:08:05 -0500 |
---|---|---|
committer | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2019-07-19 18:08:05 -0700 |
commit | 4f9131fdc2ff2d9e6c62da15f82ce7384e70895b (patch) | |
tree | 124431c02894216297beb796aa4ff03d32684d41 /var | |
parent | 4b6de7806218d4ee19ab5a40ed781a44032b80c7 (diff) | |
download | spack-4f9131fdc2ff2d9e6c62da15f82ce7384e70895b.tar.gz spack-4f9131fdc2ff2d9e6c62da15f82ce7384e70895b.tar.bz2 spack-4f9131fdc2ff2d9e6c62da15f82ce7384e70895b.tar.xz spack-4f9131fdc2ff2d9e6c62da15f82ce7384e70895b.zip |
Package inheritance: Find patch files defined in parent classes using MRO (#12051)
Fixes #8908, 11844
Use Python MRO to find patch files from parent classes.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/patch-inheritance/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/patch-inheritance/package.py b/var/spack/repos/builtin.mock/packages/patch-inheritance/package.py new file mode 100644 index 0000000000..6569af8a32 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/patch-inheritance/package.py @@ -0,0 +1,11 @@ +# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.pkg.builtin.mock.patch import Patch + + +class PatchInheritance(Patch): + def install(self, spec, prefix): + Patch.install(self, spec, prefix) |