chiark / gitweb /
dgit: make $need_split_build_invocation always true
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 25 Jul 2018 13:05:28 +0000 (21:05 +0800)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Jul 2018 03:56:35 +0000 (04:56 +0100)
dgit will always build the source package.

One minor consequence is that dgit will usualliy generate
*_multi.changes rather than *_$arch.changes, so we need to update the
one test that makes the contrary assumption.

Bump the dgit major version number as this is quite a significant
change in implementation and also a behavioural change.

This change makes a lot of code dead.  Removing that is left as a task
for the future.

Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit
tests/tests/push-source-with-changes

index d936d228352d1443576d442f0ebc6130b42a4c5d..f0b69194b25751191f2c5e8a623c89d6dfc0b00b 100644 (file)
@@ -1,4 +1,4 @@
-dgit (5.11~) unstable; urgency=medium
+dgit (6.0~) unstable; urgency=medium
 
   * test suite: unset VISUAL, which interferes.  Closes:#904308.
   * apt-get method: when apt does not update release files,
@@ -11,6 +11,9 @@ dgit (5.11~) unstable; urgency=medium
   * dgit: Minor internal improvements.
   * dgit: Rename --ignore-dirty to --include-dirty (leaving the old
     name supported as a deprecated alias).
+  * dgit: Always build the source package ourselves, rather than
+    sometimes leaving that to the builder command.  dgit will now
+    usually generate *_multi.changes rather than *_$arch.changes.
 
  --
 
diff --git a/dgit b/dgit
index 56f1605ef2ab844505260f22c5404e0586f204c5..3afaf193a4127e320ce611162b9f5f896086350f 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -166,7 +166,7 @@ our $keyid;
 autoflush STDOUT 1;
 
 our $supplementary_message = '';
-our $need_split_build_invocation = 0;
+our $need_split_build_invocation = 1;
 our $split_brain = 0;
 
 END {
index b9a3906cbf2a81575c12225353c51dd69e445533..580ea3acd5e80b9befd6d1ccf8c66f12e3e4c0dd 100755 (executable)
@@ -2,8 +2,6 @@
 set -e
 . tests/lib
 
-arch=$(dpkg-architecture -qDEB_BUILD_ARCH)
-
 t-tstunt-parsechangelog
 
 t-prep-newpackage example 1.0
@@ -18,7 +16,7 @@ t-ref-head
 t-dgit --dpkg-buildpackage:-d build -F
 
 t-expect-push-fail 'user-specified changes file is not source-only' \
-t-dgit -C ../${p}_1.0_${arch}.changes push-source --new
+t-dgit -C ../${p}_1.0_multi.changes push-source --new
 
 # (2) try pushing a source-only changes file