Fix Ninite selections
This commit is contained in:
parent
1b67a4293d
commit
a953d81b96
1 changed files with 10 additions and 7 deletions
|
|
@ -134,18 +134,18 @@ SETUP_ACTION_KEYS = (
|
||||||
SETUP_QUESTIONS = {
|
SETUP_QUESTIONS = {
|
||||||
# AV
|
# AV
|
||||||
'ESET': {'New': None, 'Fab': None, 'Cur': None, 'HW': False},
|
'ESET': {'New': None, 'Fab': None, 'Cur': None, 'HW': False},
|
||||||
'MSE': {'New': None, 'Fab': None, 'Cur': None, 'HW': False},
|
'MSE': {'New': None, 'Fab': None, 'Cur': None, 'HW': False, 'Ninite': True},
|
||||||
|
|
||||||
# Fast Startup / Hibernation
|
# Fast Startup / Hibernation
|
||||||
'Fast-Hiber': {'New': None, 'Fab': None, 'Cur': None, 'HW': False},
|
'Fast-Hiber': {'New': None, 'Fab': None, 'Cur': None, 'HW': False},
|
||||||
|
|
||||||
# LibreOffice
|
# LibreOffice
|
||||||
'LibreOffice': {'New': None, 'Fab': None, 'Cur': None, 'HW': False},
|
'LibreOffice': {'New': None, 'Fab': None, 'Cur': None, 'HW': False, 'Ninite': True},
|
||||||
|
|
||||||
# Ninite
|
# Ninite
|
||||||
'Base': {'New': True, 'Fab': True, 'Cur': True, 'HW': False},
|
'Base': {'New': True, 'Fab': True, 'Cur': True, 'HW': False, 'Ninite': True},
|
||||||
'Missing': {'New': False, 'Fab': True, 'Cur': False, 'HW': False},
|
'Missing': {'New': False, 'Fab': True, 'Cur': False, 'HW': False, 'Ninite': True},
|
||||||
'Standard': {'New': True, 'Fab': True, 'Cur': False, 'HW': False},
|
'Standard': {'New': True, 'Fab': True, 'Cur': False, 'HW': False, 'Ninite': True},
|
||||||
}
|
}
|
||||||
# pylint: enable=bad-whitespace,line-too-long
|
# pylint: enable=bad-whitespace,line-too-long
|
||||||
|
|
||||||
|
|
@ -179,8 +179,11 @@ def get_actions(setup_mode, answers):
|
||||||
_key = KIT_NAME_FULL
|
_key = KIT_NAME_FULL
|
||||||
_action['KWArgs'] = {'folder_path': global_vars['ClientDir']}
|
_action['KWArgs'] = {'folder_path': global_vars['ClientDir']}
|
||||||
elif _key == 'Ninite bundle':
|
elif _key == 'Ninite bundle':
|
||||||
_action['KWArgs'] = {kw.lower(): kv for kw, kv in answers.items()}
|
# Add install_ninite_bundle() kwargs
|
||||||
_action['KWArgs'].pop('eset', None)
|
_action['KWArgs'].update({
|
||||||
|
kw.lower(): kv for kw, kv in answers.items()
|
||||||
|
if SETUP_QUESTIONS.get(kw, {}).get('Ninite', False)
|
||||||
|
})
|
||||||
|
|
||||||
# Add to dict
|
# Add to dict
|
||||||
actions[_key] = _action
|
actions[_key] = _action
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue