From 2965f30cca23b1cb7c1cf1d764b4f6b571f0a78e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 2 May 2015 17:44:11 +0100 Subject: Policy hook sets mode of NEW repos (and policy protocol passes new repo pathname for this purpose) --- infra/dgit-repos-policy-debian | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'infra/dgit-repos-policy-debian') diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index cdfa80e..41a5551 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -247,6 +247,10 @@ sub action_push () { } sub action_push_confirm () { + getpackage(); + die unless @ARGV; + my $freshrepo = shift @ARGV; + my $initq = $poldbh->prepare(< 1); + chmod $newmode, $freshrepo or die $!; + } + } + return 0; } -- cgit v1.2.3