Skip to content

Commit

Permalink
only check repoclosure for noarch and x86_64 RPMs
Browse files Browse the repository at this point in the history
especially, don't check src, as they might have deps on development
tooling, that is not present in normal lookaside repos.

this is only really neccessary for copr repos that ship both src and
binary in the same repo.
  • Loading branch information
evgeni committed Apr 17, 2024
1 parent 4a66cac commit 5eb90e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions obal/data/modules/repoclosure.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def main():
check=dict(type='list', required=True),
additional_repos=dict(type='list', required=False, default=[]),
lookaside=dict(type='list', required=False, default=[]),
arch=dict(type='list', required=False, default=['noarch', 'x86_64']),
)
)

Expand All @@ -34,6 +35,9 @@ def main():
config
]

for arch in module.params['arch']:
command.extend(['--arch', arch])

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

0 comments on commit 5eb90e2

Please sign in to comment.