summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/util/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/util/common.py')
-rw-r--r--src/software/openlmi/software/util/common.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/software/openlmi/software/util/common.py b/src/software/openlmi/software/util/common.py
index 7deef32..a5b7c60 100644
--- a/src/software/openlmi/software/util/common.py
+++ b/src/software/openlmi/software/util/common.py
@@ -55,7 +55,7 @@ class YumDB(singletonmixin.Singleton):
# this is to inform Singleton, that __init__ should be called only once
ignoreSubsequent = True
- def __init__(self, env, *args, **kwargs):
+ def __init__(self, env, *args, **kwargs): #pylint: disable=W0231
if not isinstance(env, pycimmb.ProviderEnvironment):
raise TypeError("env must be instance of"
" pycimmb.ProviderEnvironment")
@@ -359,8 +359,7 @@ class SoftwarePackage:
[match_props['name']])
exact = yum.misc.unique(exact)
exact_orig = exact
- exact = sorted( [ p for p in exact if match_pkg(p, **match_props) ]
- , key=lambda a: a.evra)
+ exact = sorted([ p for p in exact if match_pkg(p, **match_props) ])
if len(exact) == 0:
logger.log_error('could not find any package for query: {}'
' in list: {}'