diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-08-11 20:40:58 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-08-11 22:09:06 -0700 |
commit | 6c15779a91007c5a8e1380a2c82391d49b9eda3a (patch) | |
tree | 5979152749224a915b42c80e74041292260151f9 /src/pyfedpkg/__init__.py | |
parent | 07cf37678bcaf3691991d1f15e7d35b9241e9225 (diff) | |
download | fedora-packager-6c15779a91007c5a8e1380a2c82391d49b9eda3a.tar.gz fedora-packager-6c15779a91007c5a8e1380a2c82391d49b9eda3a.tar.xz fedora-packager-6c15779a91007c5a8e1380a2c82391d49b9eda3a.zip |
Make an srpm if we need one. Ticket #49
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r-- | src/pyfedpkg/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 0e78f53..faa1b86 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -1292,8 +1292,11 @@ class PackageModule: srpm = os.path.join(self.path, "%s-%s-%s.src.rpm" % (self.module, self.ver, self.rel)) + # See if we need to build the srpm if not os.path.exists(srpm): - raise FedpkgError('Need to build srpm first') + # This should figure out the hashtype to use + log.debug('No srpm found, building one.') + self.srpm() # setup the command cmd = ['mock'] |