diff options
author | Jesse Keating <jkeating@redhat.com> | 2011-02-09 16:06:58 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2011-02-09 16:06:58 -0700 |
commit | 4f38782ef1a0f0d8f6c0eed962bbcb6503579c71 (patch) | |
tree | 82639944b25edb6e831e09db3e770480e5fc7431 /src/pyfedpkg | |
parent | f73acaf60b745656f8269a560d846bb8d134355b (diff) | |
download | fedora-packager-4f38782ef1a0f0d8f6c0eed962bbcb6503579c71.tar.gz fedora-packager-4f38782ef1a0f0d8f6c0eed962bbcb6503579c71.tar.xz fedora-packager-4f38782ef1a0f0d8f6c0eed962bbcb6503579c71.zip |
Re-arrange verify-files and slight fixups
Diffstat (limited to 'src/pyfedpkg')
-rw-r--r-- | src/pyfedpkg/__init__.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index cf5c506..6f2f6d6 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -1341,19 +1341,6 @@ 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.""" @@ -1802,3 +1789,14 @@ class PackageModule: if file not in spec: unused.append(file) return unused + + def verify_files(self): + """Run rpmbuild -bl on a module to verify the %files section""" + + # 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 |