s***@osuosl.org
2010-06-01 15:06:00 UTC
mergerepo.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit bc3df9bece50098d9dc1c82f0addac36cc1db67a
Author: Seth Vidal <***@fedoraproject.org>
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:
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit bc3df9bece50098d9dc1c82f0addac36cc1db67a
Author: Seth Vidal <***@fedoraproject.org>
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: