summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJochen Schmitt <Jochen@herr-schmitt.de>2010-09-16 20:05:50 +0200
committerJesse Keating <jkeating@redhat.com>2010-09-20 13:19:43 -0700
commit5ea2a82354f503ffcaf24c7288c640256a65306b (patch)
tree6532be879611283ff008690f9d96c581156b8c16 /src/fedpkg.py
parentc142a78896e27cf6b43135a12379c2f8ae1eb572 (diff)
downloadfedora-packager-5ea2a82354f503ffcaf24c7288c640256a65306b.zip
fedora-packager-5ea2a82354f503ffcaf24c7288c640256a65306b.tar.gz
fedora-packager-5ea2a82354f503ffcaf24c7288c640256a65306b.tar.xz
Add -i (info) switch to the lint command
Hello Jesse, this patch add a -i (info) tag for the fedpkg lint command. Best Regards: Jochen Schmitt
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 3a9b65a..8f90364 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -549,7 +549,7 @@ def install(args):
def lint(args):
try:
mymodule = pyfedpkg.PackageModule(args.path)
- return mymodule.lint()
+ return mymodule.lint(info)
except pyfedpkg.FedpkgError, e:
log.error('Could not run rpmlint: %s' % e)
sys.exit(1)
@@ -1018,6 +1018,10 @@ packages will be built sequentially.
# rpmlint target
parser_lint = subparsers.add_parser('lint',
help = 'Run rpmlint against local build output')
+ parser_lint.add_argument('--info', '-i',
+ default = False,
+ action = 'store_true',
+ help = 'Display explainations for reported messages')
parser_lint.set_defaults(command = lint)
# Build locally