diff options
| -rwxr-xr-x | fedpkg-pull-build-chain | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fedpkg-pull-build-chain b/fedpkg-pull-build-chain index e5f3f58..28a1911 100755 --- a/fedpkg-pull-build-chain +++ b/fedpkg-pull-build-chain @@ -111,10 +111,10 @@ def main(): if release.startswith('F-'): mockprefix = 'fedora' elif release.startswith('RHEL-'): - mockrelease = 'rhel' + mockprefix = 'rhel' else: raise ValueError("Can't map release %s to a mock config" % (release, )) - mockrelease = '%s-%s-%s' % (mockrelease, release[2:].lower(), architecture) + mockrelease = '%s-%s-%s' % (mockprefix, release[2:].lower(), architecture) f_in = open(os.path.join('/etc', 'mock', mockrelease + '.cfg')) new_mockrelease_path = os.path.join('_build', mockrelease + '.cfg') |
