diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/software/lmi/software/yumdb/process.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/software/lmi/software/yumdb/process.py b/src/software/lmi/software/yumdb/process.py index 1a9e1c0..07bca8f 100644 --- a/src/software/lmi/software/yumdb/process.py +++ b/src/software/lmi/software/yumdb/process.py @@ -576,6 +576,15 @@ class YumWorker(Process): Handler for filtering packages job. @return [pkg1, pkg2, ...] """ + if kind == 'all' \ + and filters.get('repoid', None) \ + and not include_repos and not exclude_repos: + # If repoid is given, we are interested only in available + # packages, not installed. With kind == 'all' we are not able to + # check repoid of installed package (which may be available). + kind = 'available' + exclude_repos = '*' + include_repos = filters.pop('repoid') pkglist = self._handle_get_package_list(kind, allow_duplicates, False, include_repos=include_repos, exclude_repos=exclude_repos, transform=False) |