[yum-cvs] 2 commits - repoquery.py reposync.py

Seth Vidal skvidal at linux.duke.edu
Tue Sep 11 15:52:31 UTC 2007


 repoquery.py |    6 ++++--
 reposync.py  |    4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

New commits:
commit 0d58390756ba11be09884088c236adaf83b21469
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Sep 11 11:49:41 2007 -0400

    add --plugins support to repoquery, too

diff --git a/repoquery.py b/repoquery.py
old mode 100755
new mode 100644
index a183015..bb6f282
--- a/repoquery.py
+++ b/repoquery.py
@@ -628,6 +628,8 @@ def main(args):
                       help="specify repoids to query, can be specified multiple times (default is all enabled)")
     parser.add_option("--repofrompath", action="append",
                       help="specify repoid & paths of additional repositories - unique repoid and complete path required, can be specified multiple times. Example. --repofrompath=myrepo,/path/to/repo")
+    parser.add_option("--plugins", action="store_true", default=False,
+                      help="enable yum plugin support")
     parser.add_option("--quiet", action="store_true", 
                       help="quiet (no output to stderr)", default=True)
     parser.add_option("--verbose", action="store_false",
@@ -714,9 +716,9 @@ def main(args):
     # silence initialisation junk from modules etc unless verbose mode
     initnoise = (not opts.quiet) * 2
     if opts.conffile:
-        repoq.doConfigSetup(fn=opts.conffile, debuglevel=initnoise)
+        repoq.doConfigSetup(fn=opts.conffile, debuglevel=initnoise, init_plugins=opts.plugins)
     else:
-        repoq.doConfigSetup(debuglevel=initnoise)
+        repoq.doConfigSetup(debuglevel=initnoise, init_plugins=opts.plugins)
 
     if opts.repofrompath:
         # setup the fake repos
commit 1d1a6ad6630ef81aa6bb1aa03d95b3cbe5181a3a
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Sep 11 11:37:33 2007 -0400

    add option to enable plugins for reposync (helps with using it with rhn-plugin)

diff --git a/reposync.py b/reposync.py
index c4500ce..2da58f3 100644
--- a/reposync.py
+++ b/reposync.py
@@ -113,6 +113,8 @@ def parseArgs():
         help="Download only newest packages per-repo")
     parser.add_option("-q", "--quiet", default=False, action="store_true", 
         help="Output as little as possible")
+    parser.add_option("-l", "--plugins", default=False, action="store_true", 
+        help="enable yum plugin support")
         
     (opts, args) = parser.parse_args()
     return (opts, args)
@@ -133,7 +135,7 @@ def main():
         sys.exit(1)
         
     my = RepoSync(opts=opts)
-    my.doConfigSetup(fn=opts.config, init_plugins=False)
+    my.doConfigSetup(fn=opts.config, init_plugins=opts.plugins)
 
     # Force unprivileged users to have a private temporary cachedir
     # if they've not given an explicit cachedir



More information about the Yum-cvs-commits mailing list