mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 11:21:13 +00:00
Remove --components/COMPONENTS as it is auto-detected
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
7124313aa6
commit
68fd0ba4b2
@ -6,11 +6,6 @@ TPU = /srv/mirrors/debian/dists/testing-proposed-updates
|
||||
PU = /srv/mirrors/debian/dists/proposed-updates
|
||||
UNSTABLE = /srv/mirrors/debian/dists/unstable
|
||||
|
||||
# Defaults to the value from testing's Release file (if present)
|
||||
# - Not used with the legacy layout.
|
||||
#
|
||||
#COMPONENTS = main, non-free, contrib
|
||||
|
||||
# Output
|
||||
NONINST_STATUS = /srv/release.debian.org/britney/var/data-b2/non-installable-status
|
||||
EXCUSES_OUTPUT = /srv/release.debian.org/britney/var/data-b2/output/excuses.html
|
||||
|
@ -9,11 +9,6 @@ TESTING = /path/to/target/suite
|
||||
# TPU = /path/to/secondary-source/suite
|
||||
# PU = /path/to/another-source/suite
|
||||
|
||||
# Defaults to the value from testing's Release file (if present)
|
||||
# - Not used with the legacy layout.
|
||||
#
|
||||
#COMPONENTS = main, non-free, contrib
|
||||
|
||||
# Output
|
||||
NONINST_STATUS = /path/to/britneys-output-dir/non-installable-status
|
||||
EXCUSES_OUTPUT = /path/to/britneys-output-dir/excuses.html
|
||||
|
@ -398,8 +398,6 @@ class Britney(object):
|
||||
help="do not build the non-installability status, use the cache from file")
|
||||
parser.add_option("", "--print-uninst", action="store_true", dest="print_uninst", default=False,
|
||||
help="just print a summary of uninstallable packages")
|
||||
parser.add_option("", "--components", action="store", dest="components",
|
||||
help="Sources/Packages are laid out by components listed (, sep)")
|
||||
parser.add_option("", "--compute-migrations", action="store_true", dest="compute_migrations", default=True,
|
||||
help="Compute which packages can migrate (the default)")
|
||||
parser.add_option("", "--no-compute-migrations", action="store_false", dest="compute_migrations",
|
||||
@ -448,6 +446,11 @@ class Britney(object):
|
||||
not getattr(self.options, k.lower()):
|
||||
setattr(self.options, k.lower(), v)
|
||||
|
||||
if hasattr(self.options, 'components'):
|
||||
self.logger.error("The COMPONENTS configuration has been removed.")
|
||||
self.logger.error("Britney will read the value from the Release file automatically")
|
||||
sys.exit(1)
|
||||
|
||||
suite_loader = DebMirrorLikeSuiteContentLoader(self.options)
|
||||
|
||||
try:
|
||||
|
@ -23,7 +23,7 @@ class SuiteContentLoader(object):
|
||||
self._outofsync_arches = SuiteContentLoader.config_str_as_list(base_config.outofsync_arches, [])
|
||||
self._break_arches = SuiteContentLoader.config_str_as_list(base_config.break_arches, [])
|
||||
self._new_arches = SuiteContentLoader.config_str_as_list(base_config.new_arches, [])
|
||||
self._components = SuiteContentLoader.config_str_as_list(base_config.components)
|
||||
self._components = []
|
||||
self._all_binaries = {}
|
||||
logger_name = ".".join((self.__class__.__module__, self.__class__.__name__))
|
||||
self.logger = logging.getLogger(logger_name)
|
||||
@ -142,7 +142,7 @@ class DebMirrorLikeSuiteContentLoader(SuiteContentLoader):
|
||||
self.logger.info("The %s suite does not have a Release file.", target_suite.name)
|
||||
release_file = None
|
||||
|
||||
if self._components is None and release_file is not None:
|
||||
if release_file is not None:
|
||||
self._components = release_file['Components'].split()
|
||||
self.logger.info("Using components listed in Release file: %s", ' '.join(self._components))
|
||||
|
||||
|
@ -6,11 +6,6 @@ TPU = /srv/mirrors/debian/dists/testing-proposed-updates
|
||||
PU = /srv/mirrors/debian/dists/proposed-updates
|
||||
UNSTABLE = /srv/mirrors/debian/dists/unstable
|
||||
|
||||
# Defaults to the value from testing's Release file (if present)
|
||||
# - Not used with the legacy layout.
|
||||
#
|
||||
#COMPONENTS = main, non-free, contrib
|
||||
|
||||
# Output
|
||||
NONINST_STATUS = /srv/release.debian.org/britney/var/data-b2/non-installable-status
|
||||
EXCUSES_OUTPUT = /srv/release.debian.org/britney/var/data-b2/output/excuses.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user