| |
@@ -739,7 +739,7 @@
|
| |
self._rel = docker_release
|
| |
return
|
| |
else:
|
| |
- raise rpkgError("Dockerfile for {0} not found.".format(self.repo_name))
|
| |
+ raise rpkgError("Dockerfile not found.")
|
| |
|
| |
# Otherwise, we get 'verrel' information from the '.spec' file.
|
| |
cmd = ['rpm']
|
| |
@@ -766,8 +766,7 @@
|
| |
except Exception as e:
|
| |
self.log.debug('Errors occoured while running following command to get N-V-R-E:')
|
| |
self.log.debug(joined_cmd)
|
| |
- raise rpkgError('Could not query n-v-r of %s: %s'
|
| |
- % (self.repo_name, e))
|
| |
+ raise rpkgError('Could not query n-v-r: %s' % e)
|
| |
if err:
|
| |
self.log.debug('Errors occoured while running following command to get N-V-R-E:')
|
| |
self.log.debug(joined_cmd)
|
| |
Method load_repo_name(9 calls load_nameverrel(), which calls
repo_name() to format its error message. That leads to calling
load_repo_name() again, and so on to endless recursion. Prevent this
situation by simplifying load_nameverrel() error messages.
Fixes #657.
Signed-off-by: Otto Liljalaakso otto.liljalaakso@iki.fi