Drop 'reprepro config: ' prefix from sources.list reprepro related warnings

That phrase is used at the end of the warning messages so
it isn't useful to repeat it at the start of them.
parent e42424ab
......@@ -171,7 +171,7 @@ with open(sys.argv[2]) as reprepro_file:
pretty_name = names[0] if len(names) < 2 else '{} ({})'.format(names[0], names[1])
conf_url = os.path.join(derivative['RepoUrl'], 'conf/distributions')
if not any(name in repos[derivative['RepoUrl']] for name in names):
logging.warning('reprepro config: Distribution %s is missing from the sources.list but is present in the reprepro config %s',
logging.warning('Distribution %s is missing from the sources.list but is present in the reprepro config %s',
pretty_name, conf_url)
continue
archive_type = ['deb']
......@@ -198,18 +198,18 @@ with open(sys.argv[2]) as reprepro_file:
missing_types[dist].add(arch_type)
missing_types = set.intersection(*missing_types.values())
if missing_types:
logging.warning('reprepro config: Archive type(s) %s of %s missing from the sources.list but present in the reprepro config %s',
logging.warning('Archive type(s) %s of %s missing from the sources.list but present in the reprepro config %s',
','.join(missing_types), pretty_name, conf_url)
for arch_type in missing_arches:
missing_arches[arch_type] = set.intersection(*missing_arches[arch_type].values())
if missing_arches[arch_type]:
logging.warning('reprepro config: Architecture(s) %s in %s missing from the sources.list but present in the reprepro config %s',
logging.warning('Architecture(s) %s in %s missing from the sources.list but present in the reprepro config %s',
','.join(missing_arches[arch_type]), pretty_name, conf_url)
for arch_type in missing_elements:
for arch in missing_elements[arch_type]:
missing_elements[arch_type][arch] = set.intersection(*missing_elements[arch_type][arch].values())
if missing_elements[arch_type][arch]:
logging.warning('reprepro config: Component(s) %s of architecture %s in %s missing from the sources.list but present in the reprepro config %s',
logging.warning('Component(s) %s of architecture %s in %s missing from the sources.list but present in the reprepro config %s',
','.join(missing_elements[arch_type][arch]), arch, pretty_name, conf_url)
missing_elements = {}
missing_arches = {}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment