diff options
author | Michal Minar <miminar@redhat.com> | 2013-11-18 12:21:48 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-11-19 10:25:00 +0100 |
commit | b35a502bb41cb7365d6552f06ee684a8b3135a09 (patch) | |
tree | e903d6dcbfb6a517b07ab08769c4fbdc5a4af5a3 /src/software | |
parent | 8ec93b144b9f095748282fa6e2daf8061bf6ec6b (diff) | |
download | openlmi-providers-b35a502bb41cb7365d6552f06ee684a8b3135a09.tar.gz openlmi-providers-b35a502bb41cb7365d6552f06ee684a8b3135a09.tar.xz openlmi-providers-b35a502bb41cb7365d6552f06ee684a8b3135a09.zip |
software: fixed package filtering
When searching for package with a partial name match, other filtering
properties were ignored.
Resolves: rhbz#1030999
Diffstat (limited to 'src/software')
-rw-r--r-- | src/software/lmi/software/yumdb/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/software/lmi/software/yumdb/process.py b/src/software/lmi/software/yumdb/process.py index 39e17bf..d035af2 100644 --- a/src/software/lmi/software/yumdb/process.py +++ b/src/software/lmi/software/yumdb/process.py @@ -91,7 +91,7 @@ def _get_package_filter_function(filters, exact_match=True): "release", "repoid", "arch"): if not prop_name in filters: continue - if not exact_match and 'name' in filters: + if prop_name == 'name' and not exact_match and 'name' in filters: continue filter_list.append((prop_name, filters.pop(prop_name))) if not exact_match and 'name' in filters: |