summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-10-26 14:05:24 -0400
committerscheibelp <scheibel1@llnl.gov>2017-11-02 18:45:40 -0700
commitd5a3d9d20ea5b0c7a0d402c895cf2b63bc3132fe (patch)
tree15f1ed3b37d7ee7866dba2cabb488b662f1a407e /var
parent13b669de8efad6a2d61717257df0d8fd986f75f9 (diff)
downloadspack-d5a3d9d20ea5b0c7a0d402c895cf2b63bc3132fe.tar.gz
spack-d5a3d9d20ea5b0c7a0d402c895cf2b63bc3132fe.tar.bz2
spack-d5a3d9d20ea5b0c7a0d402c895cf2b63bc3132fe.tar.xz
spack-d5a3d9d20ea5b0c7a0d402c895cf2b63bc3132fe.zip
view: test conflicting packages in views
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/extension1/package.py4
-rw-r--r--var/spack/repos/builtin.mock/packages/extension2/package.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin.mock/packages/extension1/package.py b/var/spack/repos/builtin.mock/packages/extension1/package.py
index c9837bde90..e36b2ad1d1 100644
--- a/var/spack/repos/builtin.mock/packages/extension1/package.py
+++ b/var/spack/repos/builtin.mock/packages/extension1/package.py
@@ -39,5 +39,5 @@ class Extension1(Package):
def install(self, spec, prefix):
mkdirp(prefix.bin)
- with open(os.path.join(prefix.bin, 'extension1'), 'w+'):
- pass
+ with open(os.path.join(prefix.bin, 'extension1'), 'w+') as fout:
+ fout.write(str(spec.version))
diff --git a/var/spack/repos/builtin.mock/packages/extension2/package.py b/var/spack/repos/builtin.mock/packages/extension2/package.py
index 5616d4c3ca..de2545250b 100644
--- a/var/spack/repos/builtin.mock/packages/extension2/package.py
+++ b/var/spack/repos/builtin.mock/packages/extension2/package.py
@@ -40,5 +40,5 @@ class Extension2(Package):
def install(self, spec, prefix):
mkdirp(prefix.bin)
- with open(os.path.join(prefix.bin, 'extension2'), 'w+'):
- pass
+ with open(os.path.join(prefix.bin, 'extension2'), 'w+') as fout:
+ fout.write(str(spec.version))