summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-28 19:16:28 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-28 20:08:38 +0000
commit95dc0dca301a9b95bb5fdb3c18bd5f1c4908407e (patch)
treeb7d92042734d03b0063c6a62a2e0f74a667fcf0d /dgit
parentd80decbb9e922845486e983c2433347354bc4cd7 (diff)
tainted-objects (cleanup): Use common message generator in dgit
The messages now come out the same. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit17
1 files changed, 8 insertions, 9 deletions
diff --git a/dgit b/dgit
index c51f75e..10773dc 100755
--- a/dgit
+++ b/dgit
@@ -4594,16 +4594,15 @@ END
my ($objid) = @_;
my $t = $taints{$objid};
return unless $t;
- print STDERR f_ "Would want to push tainted %s object %s\n",
- $t->{Type}, $objid;
+
foreach my $row (@{ $t->{Rows} }) {
- if (grep m{^--deliberately-}, @{ $row->{overrides} }) {
- print STDERR f_ " overrideable (--deliberately): %s\n",
- $row->{comment};
- } else {
- print STDERR f_ " not overrideable: %s\n",
- $row->{comment};
- }
+ # If it was actually overridding we don't get here, asd
+ # don't call tainted_objects_message. Instead, the server
+ # will send such a message to our stderr (sadly, untranslated).
+ my $ovstatus =
+ (grep m{^--deliberately-}, @{ $row->{overrides} })
+ ? '' : undef;
+ print STDERR tainted_objects_message $row, $ovstatus;
$trouble = 1;
my $hint = $row->{hint};
if (defined $hint and !$hinted{$hint}++) {