[yum-cvs] repo-rss.py

Seth Vidal skvidal at linux.duke.edu
Mon Oct 15 17:14:44 UTC 2007


 repo-rss.py |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 98ccde78165c1dc0261d9c5e43be843ab9e30d7e
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Mon Oct 15 13:12:56 2007 -0400

    add config file option to repo-rss

diff --git a/repo-rss.py b/repo-rss.py
index 0dceff8..e0df0cc 100755
--- a/repo-rss.py
+++ b/repo-rss.py
@@ -182,7 +182,11 @@ def main(options, args):
     days = options.days
     repoids = args
     my = YumQuiet()
-    my.doConfigSetup(init_plugins=False)
+    if options.config:
+        my.doConfigSetup(init_plugins=False, fn=options.config)
+    else:
+        my.doConfigSetup(init_plugins=False)
+
     if os.geteuid() != 0 or options.tempcache:
         cachedir = getCacheDir()
         if cachedir is None:
@@ -269,7 +273,8 @@ if __name__ == "__main__":
                       help="Generate one feed per package group")
     parser.add_option("-a", action='append', dest='arches', default=[],
                       help="arches to use - can be listed more than once")
-
+    parser.add_option("-c", action='store', dest='config', default=None,
+                      help="config file")
     (options, args) = parser.parse_args()
 
     main(options, args)



More information about the Yum-cvs-commits mailing list