James Bowes wrote: > How does this look to everyone? It looks terrible to me; I forgot to update the man page! The attached patch remedies this.
-James
diff --git a/cli.py b/cli.py
index 643e225..907c86a 100644
--- a/cli.py
+++ b/cli.py
@@ -1148,6 +1148,12 @@ class YumOptionParser(OptionParser):
# make sure the added repos are setup.
if len(opts.repos) > 0:
self.base._getRepos(doSetup=True)
+
+ # Disable all gpg key checking, if requested.
+ if opts.nogpgcheck:
+ self.base.conf.gpgcheck = False
+ for repo in self.base.repos.listEnabled():
+ repo.gpgcheck = False
except ValueError, e:
self.logger.critical(_('Options Error: %s'), e)
@@ -1225,6 +1231,9 @@ class YumOptionParser(OptionParser):
self.add_option("", "--noplugins", dest="noplugins",
default=False, action="store_true",
help="disable Yum plugins")
+ self.add_option("", "--nogpgcheck", dest="nogpgcheck",
+ default=False, action="store_true",
+ help="disable gpg signature checking")
diff --git a/docs/yum.8 b/docs/yum.8
index a6fb22d..0a9f922 100644
--- a/docs/yum.8
+++ b/docs/yum.8
@@ -198,6 +198,10 @@ Configuration Option: \fBexclude\fP
Run with all plugins disabled.
.br
Configuration Option: \fBplugins\fP
+.IP "\fB\-\-nogpgcheck\fP"
+Run with gpg signature checking disabled.
+.br
+Configuration Option: \fBgpgcheck\fP
.PP
.SH "LIST OPTIONS"
The following are the ways which you can invoke \fByum\fP in list
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Yum-devel mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
