summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Gimenez <gimenez1@llnl.gov>2016-09-02 14:09:46 -0700
committerAlfredo Gimenez <gimenez1@llnl.gov>2016-09-02 14:09:46 -0700
commit817c120b1c649963b15bab77e9568eba03ff9e51 (patch)
treeeace888b073a57339f5767f744506067b95d64cd
parentd78d18c4bdc307e6afa696c8fab09d90706edce5 (diff)
downloadspack-817c120b1c649963b15bab77e9568eba03ff9e51.tar.gz
spack-817c120b1c649963b15bab77e9568eba03ff9e51.tar.bz2
spack-817c120b1c649963b15bab77e9568eba03ff9e51.tar.xz
spack-817c120b1c649963b15bab77e9568eba03ff9e51.zip
Fix vim package
-rw-r--r--var/spack/repos/builtin/packages/vim/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/vim/package.py b/var/spack/repos/builtin/packages/vim/package.py
index 01eccfab57..5f2e5e19d9 100644
--- a/var/spack/repos/builtin/packages/vim/package.py
+++ b/var/spack/repos/builtin/packages/vim/package.py
@@ -71,14 +71,14 @@ class Vim(Package):
for fs in self.feature_sets:
if "+" + fs in spec:
if feature_set is not None:
- tty.error(
+ raise InstallError(
"Only one feature set allowed, specified %s and %s"
% (feature_set, fs))
feature_set = fs
if '+gui' in spec:
if feature_set is not None:
- if feature_set is not 'huge':
- tty.error(
+ if feature_set != 'huge':
+ raise InstallError(
"+gui variant requires 'huge' feature set, "
"%s was specified" % feature_set)
feature_set = 'huge'