path: root/infra/dgit-repos-policy-debian
diff options
authorIan Jackson <>2015-07-25 16:30:09 +0100
committerIan Jackson <>2015-07-25 17:56:42 +0100
commitd6be829bf56e699d27d388026d4af7ab710ba328 (patch)
treea4eb3ec080271e145d99200a43a3f5d3271e41bc /infra/dgit-repos-policy-debian
parent9141753fb5096b41074684d5bdfbb0c6f69a0c1a (diff)
Work around #793471 (madness with $SIG{__WARN__} and Perl's system builtin): move $SIG{} setting into setup_sigwarn in, and check getppid.
We also need to fix up the expectation for an error message in one of the tests, where the message changes as a side effect.
Diffstat (limited to 'infra/dgit-repos-policy-debian')
1 files changed, 3 insertions, 2 deletions
diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian
index b6310d9..fbf2d51 100755
--- a/infra/dgit-repos-policy-debian
+++ b/infra/dgit-repos-policy-debian
@@ -2,7 +2,9 @@
# dgit repos policy hook script for Debian
use strict;
-$SIG{__WARN__} = sub { die $_[0]; };
+use Debian::Dgit qw(:DEFAULT :policyflags);
use POSIX;
use JSON;
@@ -11,7 +13,6 @@ use DBI;
use IPC::Open2;
use Data::Dumper;
-use Debian::Dgit qw(:DEFAULT :policyflags);
use Debian::Dgit::Policy::Debian;