dnf properly gpg check local packages based on param (#47455)

* dnf properly gpg check local packages based on param

Fixes #43624

Signed-off-by: Adam Miller <admiller@redhat.com>
(cherry picked from commit 079705f8da)
This commit is contained in:
Adam Miller 2018-10-23 11:41:27 -05:00 committed by Toshio Kuratomi
parent 916b1e34bd
commit 96b57a5c7a
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
minor_changes:
- "dnf properly honor disable_gpg_check for local (on local disk of remote node) package installation"

View file

@ -481,6 +481,7 @@ class DnfModule(YumDnf):
# Set whether to check gpg signatures
conf.gpgcheck = not disable_gpg_check
conf.localpkg_gpgcheck = not disable_gpg_check
# Don't prompt for user confirmations
conf.assumeyes = True