mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-08 09:01:36 +00:00
britney.py: Avoid hardcoding "testing" in some log messages
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
64d2bc4203
commit
7b38fbed91
10
britney.py
10
britney.py
@ -503,11 +503,12 @@ class Britney(object):
|
|||||||
|
|
||||||
self.suite_info = Suites(suites[0], suites[1:])
|
self.suite_info = Suites(suites[0], suites[1:])
|
||||||
|
|
||||||
|
target_suite = self.suite_info.target_suite
|
||||||
try:
|
try:
|
||||||
release_file = read_release_file(self.suite_info.target_suite.path)
|
release_file = read_release_file(target_suite.path)
|
||||||
self.logger.info("Found a Release file in testing - using that for defaults")
|
self.logger.info("Found a Release file in %s - using that for defaults", target_suite.name)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
self.logger.info("Testing does not have a Release file.")
|
self.logger.info("The %s suite does not have a Release file.", target_suite.name)
|
||||||
release_file = None
|
release_file = None
|
||||||
|
|
||||||
if getattr(self.options, "components", None):
|
if getattr(self.options, "components", None):
|
||||||
@ -537,7 +538,8 @@ class Britney(object):
|
|||||||
allarches = sorted(self.options.architectures.split())
|
allarches = sorted(self.options.architectures.split())
|
||||||
else:
|
else:
|
||||||
if not release_file: # pragma: no cover
|
if not release_file: # pragma: no cover
|
||||||
self.logger.error("No configured architectures and there is no release file for testing")
|
self.logger.error("No configured architectures and there is no release file in the %s suite.",
|
||||||
|
target_suite.name)
|
||||||
self.logger.error("Please check if there is a \"Release\" file in %s",
|
self.logger.error("Please check if there is a \"Release\" file in %s",
|
||||||
self.suite_info.target_suite.path)
|
self.suite_info.target_suite.path)
|
||||||
self.logger.error("or if the config file contains a non-empty \"ARCHITECTURES\" field")
|
self.logger.error("or if the config file contains a non-empty \"ARCHITECTURES\" field")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user