chiark / gitweb /
dgit-mirror-ssh-wrap: Clarify the error message
[dgit.git] / infra / dgit-mirror-ssh-wrap
index 4d0dcc9da4911c4385bbae160faed8a9acad6ad0..c3d033f5862e1993c8dbd3f5a3239b2fd9aa170f 100755 (executable)
@@ -16,7 +16,7 @@ our ($prefix, $suffix) = @ARGV;
 $prefix =~ s/\W/\\$&/g;
 $suffix =~ s/\W/\\$&/g;
 
-my $package = qr{[0-9a-z][-+0-9a-z]*};
+my $package = qr{[0-9a-z][-+.0-9a-z]*};
 my $d = qr{$prefix$package$suffix};
 
 my $command = $ENV{SSH_ORIGINAL_COMMAND}
@@ -32,6 +32,7 @@ m{^rsync --server -lHtre\.iLsfxC --timeout=\d+ --delete --safe-links \. $d$}
 # The pattern should contain $d where the per-package destination
 # directory would go.
 
-or die "unexpected command $command\n";
+or die "dgit-mirror-ssh-wrap: unexpected command (rsync upgraded?):
+ $command\n";
 
 exec $& or die $!;