diff options
Diffstat (limited to 'lib/spack/spack/package.py')
-rw-r--r-- | lib/spack/spack/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index d543539d9a..d262e71df2 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -967,6 +967,9 @@ class PackageBase(with_metaclass(PackageMeta, PackageViewMixin, object)): self.stage.cache_local() + for patch in self.spec.patches: + patch.fetch(self.stage) + def do_stage(self, mirror_only=False): """Unpacks and expands the fetched tarball.""" if not self.spec.concrete: @@ -2078,6 +2081,9 @@ class PackageBase(with_metaclass(PackageMeta, PackageViewMixin, object)): def do_clean(self): """Removes the package's build stage and source tarball.""" + for patch in self.spec.patches: + patch.clean() + self.stage.destroy() def format_doc(self, **kwargs): |