[Yum] [PATCH] createrepo ignores long options --quiet and --verbose
Arun Bhanu
ab at arunbhanu.com
Tue May 17 23:38:12 UTC 2005
Hi
Just a trivial patch. createrepo is ignoring the long options --quiet
and --verbose.
Attached patch should fix it. Please consider applying.
Arun Bhanu
diff -uprN createrepo-0.4.2/genpkgmetadata.py createrepo-devel/genpkgmetadata.py
--- createrepo-0.4.2/genpkgmetadata.py 2005-01-18 15:20:25.000000000 +0800
+++ createrepo-devel/genpkgmetadata.py 2005-05-18 07:23:50.000000000 +0800
@@ -170,9 +170,9 @@ def parseArgs(args):
try:
for arg,a in gopts:
- if arg == '-v':
+ if arg in ['-v', '--verbose']:
cmds['verbose'] = 1
- elif arg == "-q":
+ elif arg in ['-q', '--quiet']:
cmds['quiet'] = 1
elif arg in ['-u', '--baseurl']:
if cmds['baseurl'] is not None:
More information about the Yum
mailing list