chiark / gitweb /
dgit build: Warn if --build-products-dir is not `..'.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Jul 2018 04:31:37 +0000 (05:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Jul 2018 04:39:37 +0000 (05:39 +0100)
Closes:#904859.

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

index 82941916b4ffe048927de1f5e0e33b6946d6aa5b..0155fa92dc6b2804daf01319eb51ecd6485ef912 100644 (file)
@@ -2,6 +2,7 @@ dgit (6.2~) unstable; urgency=medium
 
   * dgit(1): Improve and correct --build-products-dir description.
   * dgit: Minor code cleanup.
+  * dgit build: Warn if --build-products-dir is not `..'.  Closes:#904859.
   * test suite: Test dgit import-dsc --build-products-dir.
 
  --
diff --git a/dgit b/dgit
index 63126712f4490bfd78f4a47ca73be00e25d04dc9..4e43d21ddf9d07583bb64d69123ae54745b83faa 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6294,6 +6294,10 @@ sub postbuild_mergechanges_vanilla ($) {
 
 sub cmd_build {
     build_prep_early();
+    $buildproductsdir eq '..' or print STDERR <<END;
+$us: warning: build-products-dir set, but not supported by dgit build
+$us: warning: things may go wrong or files may go to the wrong place
+END
     my @dbp = (@dpkgbuildpackage, qw(-us -uc), changesopts_initial(), @ARGV);
     my $wantsrc = massage_dbp_args \@dbp;
     build_prep($wantsrc);