spack/lib/spack
Michael Kuhn 802dc4a03a patch: split up fetch and clean into separate methods (#10150)
"mirror create" was invoking a package's do_patch method in order to
retrieve and archive URL patches. If a package implements a "patch"
method, this is also called as part of do_patch; this failed when the
package-specific implementation referred to environment variables
that are only available at the time the package is built
(e.g. "spack_cc").

This change introduces fetch and clean methods for patches. They are
no-ops for FilePatch but perform the appropriate actions for
UrlPatch. This allows "mirror create" to invoke do_fetch, which does
not call the package's patch method.
2019-01-02 11:44:50 -08:00
..
docs copyright: update license headers for 2013-2019 copyright. 2019-01-01 00:44:28 -08:00
env copyright: update license headers for 2013-2019 copyright. 2019-01-01 00:44:28 -08:00
external copyright: update license headers for 2013-2019 copyright. 2019-01-01 00:44:28 -08:00
llnl copyright: update license headers for 2013-2019 copyright. 2019-01-01 00:44:28 -08:00
spack patch: split up fetch and clean into separate methods (#10150) 2019-01-02 11:44:50 -08:00