yum: Fix up the filter check when doing GetRepoList(). Fixes rh#598697

This commit is contained in:
Richard Hughes 2010-06-02 09:20:34 +01:00
parent 1ed4c0c35a
commit 72a5f91e35

View File

@ -2682,7 +2682,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
return
for repo in repos:
if filters != FILTER_NOT_DEVELOPMENT or not _is_development_repo(repo.id):
if not FILTER_NOT_DEVELOPMENT in filters or not _is_development_repo(repo.id):
enabled = repo.isEnabled()
self.repo_detail(repo.id, repo.name, enabled)