X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=infra%2Fdgit-repos-policy-debian;h=ce98cd72e46bfa104cf57182037dfb09d8f8a51b;hb=ef676d2d2e300a8b81166929ab836ba7e50a1356;hp=e00fb5a3fe17e96fae3804c23bb054a6a3a1a2bf;hpb=bef4fbf5bb46be7ddb1e78d6ebca866648aa9dbf;p=dgit.git diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index e00fb5a3..ce98cd72 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -23,7 +23,7 @@ our $dgitlive = shift @ARGV // die "need DGIT-LIVE-DIR"; our $action = shift @ARGV // die "need ACTION"; our $publicmode = 02775; -our $new_upload_propagation_slop = 3600*4 + 100; +our $new_upload_propagation_slop = 3600*4 + 100;# fixme config; our $poldbh; our $pkg; @@ -259,8 +259,8 @@ sub action_push () { sub action_push_confirm () { getpackage(); - die unless @ARGV; - my $freshrepo = shift @ARGV; + die unless @ARGV >= 5; + my $freshrepo = $ARGV[4]; my $initq = $poldbh->prepare(< 1); + my $newmode = $oldmode & + (~0555 | ($oldwrites << 1) | ($oldwrites >> 1)); + printdebug sprintf "chmod %#o (was %#o) %s\n", + $newmode, $oldmode, $freshrepo; chmod $newmode, $freshrepo or die $!; } }