diff options
Diffstat (limited to 'src/software/lmi/software/core/InstallationService.py')
-rw-r--r-- | src/software/lmi/software/core/InstallationService.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/software/lmi/software/core/InstallationService.py b/src/software/lmi/software/core/InstallationService.py index cf64ff8..9bb085b 100644 --- a/src/software/lmi/software/core/InstallationService.py +++ b/src/software/lmi/software/core/InstallationService.py @@ -175,13 +175,13 @@ class Values(object): 13 : "ScheduleInstallAt", } - InstallOptions.supported = { + InstallOptions.supported = set([ InstallOptions.Install, InstallOptions.Update, InstallOptions.Uninstall, InstallOptions.Force_installation, InstallOptions.Repair, - } + ]) class CheckSoftwareIdentity(object): @@ -681,7 +681,7 @@ def _install_or_remove_check_params( elif not isinstance(install_options, list): raise InstallationError(values.Unspecified_Error, "InstallOptions must be a list of uint16 values.") - options = {p for p in install_options} + options = set([p for p in install_options]) if options - supported_options: raise InstallationError(values.Unspecified_Error, @@ -700,10 +700,10 @@ def _install_or_remove_check_params( "install option \"%s\" can not have any" " associated value: %s" % (opt, val)) _check_target_and_collection(env, method, target, collection) - exclusive = [opt for opt in options if opt in { + exclusive = [opt for opt in options if opt in set([ values.InstallOptions.Install, values.InstallOptions.Update, - values.InstallOptions.Uninstall }] + values.InstallOptions.Uninstall ])] if len(exclusive) > 1: raise InstallationError(values.Unspecified_Error, "specified more than one mutually exclusive option at once: {%s}" % |