summaryrefslogtreecommitdiffstats
path: root/src/pyfedpkg
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/pyfedpkg
parentc142a78896e27cf6b43135a12379c2f8ae1eb572 (diff)
downloadfedora-packager-5ea2a82354f503ffcaf24c7288c640256a65306b.tar.gz
fedora-packager-5ea2a82354f503ffcaf24c7288c640256a65306b.tar.xz
fedora-packager-5ea2a82354f503ffcaf24c7288c640256a65306b.zip
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/pyfedpkg')
-rw-r--r--src/pyfedpkg/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index a49f4ed..2694cb7 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -1385,7 +1385,7 @@ class PackageModule:
_run_command(cmd, shell=True)
return
- def lint(self):
+ def lint(self, info=False):
"""Run rpmlint over a built srpm
Log the output and returns nothing
@@ -1404,7 +1404,10 @@ class PackageModule:
rpms.extend([os.path.join(self.path, arch, file) for file in
os.listdir(os.path.join(self.path, arch))
if file.endswith('.rpm')])
- cmd = ['rpmlint', os.path.join(self.path, srpm)]
+ cmd = ['rpmlint']
+ if info:
+ cmd.extend(['-i'])
+ cmd.extend([os.path.join(self.path, srpm)])
cmd.extend(rpms)
# Run the command
_run_command(cmd, shell=True)