chiark / gitweb /
dgit: split brain reorg: Move do_split_brain setting
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 6 Jun 2019 14:01:48 +0000 (15:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 28 Jun 2019 11:45:38 +0000 (12:45 +0100)
commitacf296f554f89df4b2cc3a8ac6458ef3da9b21d3
tree20d274397648a31d1c3d3ab425e687070dbb032e
parentf671ba1836ad04c5cf0c6bcbac9959f2aadfe4cc
dgit: split brain reorg: Move do_split_brain setting

We have to introduce a new "time", build_or_push_prep_modes, which is
the point at which we know we have a working tree, and know the quilt
mode, and know we are pushing or building.

There is one call to build_or_push_prep_modes near every call to
build_or_push_prep_early - after pushing/notpushing (which also means
after parseopts_late_defaults).

There is one nontrivial functional difference: Now we use the format
from the working tree, rather than from the .dsc.  But these ought to
be identical in any sane situation.  If they are not then the user has
done something very strange.  The quilt fixup machinery may go wrong,
but we should detect a problem later, during the dpkg-source -x check,
so nothing wrong will be pushed anywhere.

Otherwise no overall functional change other than to debug output.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit