Make components and --control-files mutually exclusive

Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
Niels Thykier 2016-03-24 15:08:18 +00:00
parent 496e48c9a7
commit 5bbca73391

View File

@ -424,6 +424,12 @@ class Britney(object):
else:
self.options.components = None
if self.options.control_files and self.options.components:
# We cannot regenerate the control files correctly when reading from an
# actual mirror (we don't which package goes in what component etc.).
self.__log("Cannot use --control-files with mirror-layout (components)!", type="E")
sys.exit(1)
if not hasattr(self.options, "heidi_delta_output"):
self.options.heidi_delta_output = self.options.heidi_output + "Delta"