mergerepo.py

[email protected]
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 mergerepo.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit bc3df9bece50098d9dc1c82f0addac36cc1db67a
Author: Seth Vidal <[email protected]>
Date:   Tue Jun 1 11:06:42 2010 -0400

    add --no-database to mergrepo, too

diff --git a/mergerepo.py b/mergerepo.py
index 80ab504..404debe 100755
--- a/mergerepo.py
+++ b/mergerepo.py
@@ -39,7 +39,8 @@ def parse_args(args):
                       help="repo url")
     parser.add_option("-a", "--archlist", default=[], action="append",
                       help="Defaults to all arches - otherwise specify arches")
-    parser.add_option("-d", "--database", default=False, action="store_true")
+    parser.add_option("-d", "--database", default=True, action="store_true")
+    parser.add_option( "--no-database", default=True, action="store_true", dest="nodatabase")
     parser.add_option("-o", "--outputdir", default=None,
                       help="Location to create the repository")
     parser.add_option("", "--nogroups", default=False, action="store_true",
@@ -70,8 +71,8 @@ def main(args):
         rmbase.archlist = opts.archlist
     if opts.outputdir:
         rmbase.outputdir = opts.outputdir
-    if opts.database:
-        rmbase.mdconf.database = True
+    if opts.nodatabase:
+        rmbase.mdconf.database = False
     if opts.nogroups:
         rmbase.groups = False
     if opts.noupdateinfo:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.