summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/cmake-client/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/cmake-client/package.py')
-rw-r--r--var/spack/repos/builtin.mock/packages/cmake-client/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin.mock/packages/cmake-client/package.py b/var/spack/repos/builtin.mock/packages/cmake-client/package.py
index 54842fd2d8..ed3998e550 100644
--- a/var/spack/repos/builtin.mock/packages/cmake-client/package.py
+++ b/var/spack/repos/builtin.mock/packages/cmake-client/package.py
@@ -15,7 +15,7 @@ def check(condition, msg):
class CmakeClient(CMakePackage):
- """A dumy package that uses cmake."""
+ """A dummy package that uses cmake."""
homepage = "https://www.example.com"
url = "https://www.example.com/cmake-client-1.0.tar.gz"
@@ -38,14 +38,16 @@ class CmakeClient(CMakePackage):
did_something = False
@run_after("cmake")
- @run_before("cmake", "build", "install")
+ @run_before("cmake")
+ @run_before("build")
+ @run_before("install")
def increment(self):
- self.callback_counter += 1
+ CmakeClient.callback_counter += 1
@run_after("cmake")
@on_package_attributes(run_this=True, check_this_is_none=None)
def flip(self):
- self.flipped = True
+ CmakeClient.flipped = True
@run_after("cmake")
@on_package_attributes(does_not_exist=None)