summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2020-02-01 21:04:56 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2020-02-01 21:04:56 +0000
commitece5816db28a48e097d99da1bfaf4d853726b851 (patch)
tree33bd6360f6ca54dfb28280cec8f97aec30b5ee6c /dgit
parent524d221c7e3b70db546be01d4929a1e9a56e14b7 (diff)
dgit: absurd: Provide a way for absurd git to print warnings
The file ../../absurd-apply-warnings is dumped to dgit's stderr. Nothing writes to it yet, so no overall functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit8
1 files changed, 8 insertions, 0 deletions
diff --git a/dgit b/dgit
index 4804c9b..716cecf 100755
--- a/dgit
+++ b/dgit
@@ -36,6 +36,7 @@ use File::Path;
use File::Spec;
use File::Temp qw(tempdir);
use File::Basename;
+use File::Copy ();
use Dpkg::Version;
use Dpkg::Compression;
use Dpkg::Compression::Process;
@@ -2659,6 +2660,8 @@ END
chomp $@;
progress "warning: $@";
$path = "$absurdity:$path";
+ open T, ">../../absurd-apply-warnings" or die $!;
+ close T or die $!;
progress f_ "%s: trying slow absurd-git-apply...", $us;
rename "../../gbp-pq-output","../../gbp-pq-output.0"
or $!==ENOENT
@@ -2693,6 +2696,11 @@ gbp-pq import and dpkg-source disagree!
dpkg-source --before-build gave tree %s
END
$rawimport_hash = $gapplied;
+
+ if ($use_absurd) {
+ File::Copy::copy("../../absurd-apply-warnings", \*STDERR)
+ or die $!;
+ }
};
last unless $@;
}