summaryrefslogtreecommitdiffstats
path: root/src/pyfedpkg/__init__.py
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2011-02-05 01:25:15 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2011-02-05 01:25:15 +0100
commit25e7ca228a2bdde4cd94731a3113f48c02418631 (patch)
tree7531ae45a1ed6a6c5822912790edd177d41df2ca /src/pyfedpkg/__init__.py
parent0f49c4e1336138ee8909bc76ad636878d067e60e (diff)
parent357ae922fa3621b76ca5209524285d310cd869a1 (diff)
downloadfedora-packager-25e7ca228a2bdde4cd94731a3113f48c02418631.tar.gz
fedora-packager-25e7ca228a2bdde4cd94731a3113f48c02418631.tar.xz
fedora-packager-25e7ca228a2bdde4cd94731a3113f48c02418631.zip
Merge branch 'new-command/verify-files' into 5/ALL5/ALL
Conflicts: src/fedpkg.bash
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r--src/pyfedpkg/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index 6b9682e..b32542a 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -1328,6 +1328,19 @@ class PackageModule:
_run_command(cmd, shell=True)
return
+ def verify_files(self):
+ """Run rpmbuild -bl on a module to verify the %files section"""
+
+ # Get the sources
+ sources(self.path)
+ # setup the rpm command
+ cmd = ['rpmbuild']
+ cmd.extend(self.rpmdefines)
+ cmd.extend(['-bl', os.path.join(self.path, self.spec)])
+ # Run the command
+ _run_command(cmd, shell=True)
+ return
+
def getver(self):
"""Return the version-release of a package module."""