Skip to content

Commit

Permalink
copr: don't try to list runtime dependencies
Browse files Browse the repository at this point in the history
These are not necessarily other copr repositories, but rather any
(external) repositories.  We can not disable them "separately" by
'dnf copr disable', etc.  Printing them in 'dnf copr list' isn't
semantically correct.

Fixes: rhbz#1871373
  • Loading branch information
praiskup authored and xsuchy committed Sep 21, 2020
1 parent ba83dc3 commit b4cbdff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/copr.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ def _list_repo_file(self, repo_id, repo, enabled_only, disabled_only):
# We skip multilib repositories
return

if re.match('coprdep:.*', repo_id):
# Runtime dependencies are not listed.
return

enabled = repo.enabled
if (enabled and disabled_only) or (not enabled and enabled_only):
return
Expand Down

0 comments on commit b4cbdff

Please sign in to comment.