Make all try_and_print results uppercase

This commit is contained in:
2Shirt 2019-05-10 17:36:30 -06:00
parent a9c874d79e
commit f17da656bb
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 20 additions and 20 deletions

View file

@ -9,11 +9,11 @@ from settings.browsers import *
browser_data = {}
other_results = {
'Error': {
'MultipleInstallationsError': 'Multiple installations detected',
'MultipleInstallationsError': 'MULTIPLE INSTALLATIONS DETECTED',
},
'Warning': {
'NotInstalledError': 'Not installed',
'NoProfilesError': 'No profiles found',
'NotInstalledError': 'NOT INSTALLED',
'NoProfilesError': 'NO PROFILES FOUND',
}
}
@ -385,7 +385,7 @@ def install_adblock(
# installation status.
try_and_print(message='{}...'.format(browser),
indent=indent, width=width,
cs='Done', function=popen_program,
cs='STARTED', function=popen_program,
cmd=[exe_path, *urls], check=False)
@ -459,7 +459,7 @@ def scan_for_browsers(just_firefox=False, silent=False, skip_ie=False):
pass
else:
try_and_print(message='{}...'.format(name),
function=get_browser_details, cs='Detected',
function=get_browser_details, cs='DETECTED',
other_results=other_results, name=name)

View file

@ -24,23 +24,23 @@ set_log_file('System Setup.log')
# pylint: disable=bad-whitespace,line-too-long
OTHER_RESULTS = {
'Error': {
'BIOSKeyNotFoundError': 'BIOS key not found',
'CalledProcessError': 'Unknown Error',
'FileNotFoundError': 'File not found',
'GenericError': 'Unknown Error',
'Not4KAlignedError': 'False',
'SecureBootDisabledError': 'Disabled',
'WindowsUnsupportedError': 'Unsupported',
'BIOSKeyNotFoundError': 'BIOS KEY NOT FOUND',
'CalledProcessError': 'UNKNOWN ERROR',
'FileNotFoundError': 'FILE NOT FOUND',
'GenericError': 'UNKNOWN ERROR',
'Not4KAlignedError': 'FALSE',
'SecureBootDisabledError': 'DISABLED',
'WindowsUnsupportedError': 'UNSUPPORTED',
},
'Warning': {
'GenericRepair': 'Repaired',
'NoProfilesError': 'No profiles found',
'NotInstalledError': 'Not installed',
'OSInstalledLegacyError': 'OS installed Legacy',
'SecureBootNotAvailError': 'Not available',
'SecureBootUnknownError': 'Unknown',
'UnsupportedOSError': 'Unsupported OS',
'WindowsOutdatedError': 'Outdated',
'GenericRepair': 'REPAIRED',
'NoProfilesError': 'NO PROFILES FOUND',
'NotInstalledError': 'NOT INSTALLED',
'OSInstalledLegacyError': 'OS INSTALLED LEGACY',
'SecureBootNotAvailError': 'NOT AVAILABLE',
'SecureBootUnknownError': 'UNKNOWN',
'UnsupportedOSError': 'UNSUPPORTED OS',
'WindowsOutdatedError': 'OUTDATED',
},
}
SETUP_ACTIONS = OrderedDict({