variants: fixed packages reported by @adamjstewart in #4098 (#4105)

This commit is contained in:
Massimiliano Culpo
2017-05-04 19:58:58 +02:00
committed by Todd Gamblin
parent 0cf406d7b6
commit 6a9052bd4d
5 changed files with 84 additions and 32 deletions

View File

@@ -45,8 +45,19 @@ class Matlab(Package):
version('R2016b', 'b0e0b688894282139fa787b5a86a5cf7')
variant('mode', default='interactive', description='Installation mode (interactive, silent, or automated)')
variant('key', default='', description='The file installation key to use')
variant(
'mode',
default='interactive',
values=('interactive', 'silent', 'automated'),
description='Installation mode (interactive, silent, or automated)'
)
variant(
'key',
default='',
values=lambda x: True, # Anything goes as a key
description='The file installation key to use'
)
# Licensing
license_required = True