Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Check for RequireGPGCheck
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Fabik <[email protected]>
  • Loading branch information
michalfabik committed Jan 21, 2020
1 parent 8bdfad8 commit ac2802a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/retrace/retrace_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ def start_retrace(self, custom_arch=None):
dockerfile.write('\n')
dockerfile.write('RUN dnf install --assumeyes dnf-plugins-core\n')
dockerfile.write('RUN dnf config-manager --add-repo=file://%s\n' % repopath)
if not CONFIG["RequireGPGCheck"]:
dockerfile.write('RUN dnf config-manager --save --setopt=%s*.gpgcheck=0\n'
% repoid)
dockerfile.write('RUN dnf ')
dockerfile.write('--releasever=%s ' % version)
dockerfile.write('--repo=%s* ' % repoid)
Expand Down

0 comments on commit ac2802a

Please sign in to comment.