Skip to content

Commit

Permalink
explicitly enable the repo to be checked during closure
Browse files Browse the repository at this point in the history
otherwise dnf happily will check nothing if the repo does not exist
  • Loading branch information
evgeni authored and ehelms committed Dec 14, 2023
1 parent 13323f7 commit d4c0a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions obal/data/modules/repoclosure.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def main():

for name in check:
command.extend(['--check', name])
command.extend(['--repo', name])

for repo in additional_repos:
command.extend(['--repofrompath', '{},{}'.format(repo['name'], repo['url'])])
Expand Down
1 change: 1 addition & 0 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ def test_obal_repoclosure():
"--config",
"repoclosure/yum.conf",
"--check el7-katello",
"--repo el7-katello",
"--repo el7-base"
]
assert_in_mockbin_log(expected_log)
Expand Down

0 comments on commit d4c0a6c

Please sign in to comment.