[yum-commits] repomanage.py repoquery.py
James Antill
james at osuosl.org
Tue Feb 2 04:51:23 UTC 2010
repomanage.py | 6 +++---
repoquery.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit cddbc51ca6fc8f95c743377b13a535818583733c
Author: James Antill <james at and.org>
Date: Mon Feb 1 23:51:14 2010 -0500
Remove the rest of the print_help calls, unicide al la. BZ 560369
diff --git a/repomanage.py b/repomanage.py
index e4060ac..759bf30 100755
--- a/repomanage.py
+++ b/repomanage.py
@@ -107,17 +107,17 @@ def parseargs(args):
if opts.new and opts.old:
errorprint('\nPass either --old or --new, not both!\n')
- parser.print_help()
+ print parser.format_help()
sys.exit(1)
if len(args) > 1:
errorprint('Error: Only one directory allowed per run.')
- parser.print_help()
+ print parser.format_help()
sys.exit(1)
if len(args) < 1:
errorprint('Error: Must specify a directory to index.')
- parser.print_help()
+ print parser.format_help()
sys.exit(1)
return (opts, args)
diff --git a/repoquery.py b/repoquery.py
index 0a1e76b..e2a5fa5 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -710,7 +710,7 @@ def main(args):
if opts.all:
regexs = ['*']
else:
- parser.print_help()
+ print parser.format_help()
sys.exit(1)
pkgops = []
More information about the Yum-commits
mailing list