chiark / gitweb /
Policy hook protocol: pass dgit live directory (nfc)
[dgit.git] / infra / dgit-repos-policy-debian
index 526db03db8660f252e73355b33d28749e5d6d2cf..0c7d8887fe153152d9e877b0f27e95cf718e3b9e 100755 (executable)
@@ -2,6 +2,8 @@
 # dgit repos policy hook script for Debian
 
 use strict;
+$SIG{__WARN__} = sub { die $_[0]; };
+
 use POSIX;
 use JSON;
 use File::Temp qw(tempfile);
@@ -13,6 +15,7 @@ use Debian::Dgit::Policy::Debian;
 
 our $distro = shift @ARGV // die "need DISTRO";
 our $repos = shift @ARGV // die "need DGIT-REPOS-DIR";
+our $dgitlive = shift @ARGV // die "need DGIT-LIVE-DIR";
 our $action = shift @ARGV // die "need ACTION";
 
 our $publicmode = 02775;