[yum-cvs] yum cli.py,1.266,1.267
James Bowes
jbowes at linux.duke.edu
Thu Apr 26 23:22:40 UTC 2007
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv20873
Modified Files:
cli.py
Log Message:
add --nogpgcheck command line option
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -r1.266 -r1.267
--- cli.py 26 Apr 2007 07:00:48 -0000 1.266
+++ cli.py 26 Apr 2007 23:22:38 -0000 1.267
@@ -1148,6 +1148,12 @@
# 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 @@
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")
More information about the Yum-cvs-commits
mailing list