diff options
author | Ales Ledvinka <aledvink@redhat.com> | 2014-04-11 14:20:00 +0200 |
---|---|---|
committer | Ales Ledvinka <aledvink@redhat.com> | 2014-04-11 14:20:00 +0200 |
commit | e83d5dc50a95980e5f0085e931078ecf448f91eb (patch) | |
tree | ebacaf09b64c378da9cf42b32237179ca0147dac /src/software/lmi/software/core/InstallationService.py | |
parent | bbf83307946d07c7189ba7bfe90b56797c11ef39 (diff) | |
download | openlmi-providers-e83d5dc50a95980e5f0085e931078ecf448f91eb.tar.gz openlmi-providers-e83d5dc50a95980e5f0085e931078ecf448f91eb.tar.xz openlmi-providers-e83d5dc50a95980e5f0085e931078ecf448f91eb.zip |
python2.6 software provider
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}" % |