Merge pull request #1715 from alfredo-gimenez/bugfix/vim

Fix vim package.
This commit is contained in:
becker33 2016-09-02 14:59:14 -07:00 committed by GitHub
commit ea6143402f

View file

@ -71,14 +71,14 @@ def install(self, spec, prefix):
for fs in self.feature_sets: for fs in self.feature_sets:
if "+" + fs in spec: if "+" + fs in spec:
if feature_set is not None: if feature_set is not None:
tty.error( raise InstallError(
"Only one feature set allowed, specified %s and %s" "Only one feature set allowed, specified %s and %s"
% (feature_set, fs)) % (feature_set, fs))
feature_set = fs feature_set = fs
if '+gui' in spec: if '+gui' in spec:
if feature_set is not None: if feature_set is not None:
if feature_set is not 'huge': if feature_set != 'huge':
tty.error( raise InstallError(
"+gui variant requires 'huge' feature set, " "+gui variant requires 'huge' feature set, "
"%s was specified" % feature_set) "%s was specified" % feature_set)
feature_set = 'huge' feature_set = 'huge'