Make Heidi optional

Setting HEIDI_OUTPUT to an empty value will skip the heidi generation, to speed
up britney in scenarios where heidi is not needed.
pre-rebase-2016-12-12
Robert Bruce Park 9 years ago committed by Martin Pitt
parent 69ab5f6c32
commit 027b18f931

@ -489,7 +489,7 @@ class Britney(object):
self.log("Cannot use --control-files with mirror-layout (components)!", type="E") self.log("Cannot use --control-files with mirror-layout (components)!", type="E")
sys.exit(1) sys.exit(1)
if not hasattr(self.options, "heidi_delta_output"): if self.options.heidi_output and 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"
self.options.nobreakall_arches = self.options.nobreakall_arches.split() self.options.nobreakall_arches = self.options.nobreakall_arches.split()
@ -2743,14 +2743,15 @@ class Britney(object):
write_controlfiles(self.sources, self.binaries, write_controlfiles(self.sources, self.binaries,
'testing', self.options.testing) 'testing', self.options.testing)
# write HeidiResult if self.options.heidi_output:
self.log("Writing Heidi results to %s" % self.options.heidi_output) # write HeidiResult
write_heidi(self.options.heidi_output, self.sources["testing"], self.log("Writing Heidi results to %s" % self.options.heidi_output)
self.binaries["testing"]) write_heidi(self.options.heidi_output, self.sources["testing"],
self.binaries["testing"])
self.log("Writing delta to %s" % self.options.heidi_delta_output) self.log("Writing delta to %s" % self.options.heidi_delta_output)
write_heidi_delta(self.options.heidi_delta_output, write_heidi_delta(self.options.heidi_delta_output,
self.all_selected) self.all_selected)
self.printuninstchange() self.printuninstchange()

Loading…
Cancel
Save