From: Seth Vidal Date: Tue, 1 Jun 2010 15:06:42 +0000 (-0400) Subject: add --no-database to mergrepo, too X-Git-Tag: upstream/0.9.9~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc3df9bece50098d9dc1c82f0addac36cc1db67a;p=tools%2Fcreaterepo.git 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: