mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-29 03:11:33 +00:00
Make components and --control-files mutually exclusive
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
496e48c9a7
commit
5bbca73391
@ -424,6 +424,12 @@ class Britney(object):
|
|||||||
else:
|
else:
|
||||||
self.options.components = None
|
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"):
|
if not hasattr(self.options, "heidi_delta_output"):
|
||||||
self.options.heidi_delta_output = self.options.heidi_output + "Delta"
|
self.options.heidi_delta_output = self.options.heidi_output + "Delta"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user