X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=infra%2Fdgit-ssh-dispatch;h=f29515f53e073c8b19e7345f950a278dad58e896;hp=4769d895830f5aa154e49fc0cc94f069a9e68bb4;hb=ba923623a80877a6ba06e7fe528b480763ab9ddb;hpb=850c5e51043c2eb3a9804877314edefb6156e816 diff --git a/infra/dgit-ssh-dispatch b/infra/dgit-ssh-dispatch index 4769d895..f29515f5 100755 --- a/infra/dgit-ssh-dispatch +++ b/infra/dgit-ssh-dispatch @@ -21,19 +21,19 @@ $authrune //= join ':', our $lre = $package_re; our $qre = '["'."']?"; -# $dispatchdir should contain +# $dispatchdir/distro=DISTRO should contain # dgit-live a clone of dgit -# repos/ -# suites # diverts -# policy-hook +# repos/ } by virtue of +# suites } dgit-repos-server's defaults relating to +# policy-hook } dispatch-dir # plus files required by the authrune (by default, keyrings/ and dm.txt) # # diverts should be list of # [] # where is a package name pattern which may contain * or literals. -our ($distro,$pkg); +our ($distro,$pkg, $d); our ($dgitlive,$repos,$suites,$diverts,$policyhook,$repo); sub checkdivert ($) { @@ -73,7 +73,7 @@ sub selectpackage ($$;$) { my $divertfn; ($distro,$pkg, $divertfn) = @_; # $distro,$pkg must have sane syntax - my $d = "$dispatchdir/distro=$distro"; + $d = "$dispatchdir/distro=$distro"; if (!stat $d) { die $! unless $!==ENOENT; @@ -125,8 +125,7 @@ sub dispatch () { selectpackage $2,$3; if ($cmd eq 'receive-pack') { my $s = "$dgitlive/infra/dgit-repos-server"; - exec $s, $distro, $suites, $authrune, $repos, - $policyhook, qw(--ssh); + exec $s, $distro, $d, $authrune, qw(--ssh); die "exec $s: $!"; } elsif ($cmd eq 'upload-pack') { $repo='$repos/_empty' unless hasrepo;