the YARRG website's source code.
-</%doc><%perl>
+</%doc><%flags>
+inherit => undef
+</%flags><%perl>
use IO::Pipe;
use CommodsWeb;
$r->content_type('application/octet-stream');
$m->flush_buffer();
-$ENV{'YPPSC_YARRG_SRCBASE'}= $sourcebasedir;
+$ENV{'YPPSC_YARRG_SRCBASE'}= sourcebasedir();
my $pipe= new IO::Pipe or die $!;
my $pid= fork(); defined $pid or die $!;
if (!$pid) {
git-ls-files -z;
git-ls-files -z --others --exclude-from=.gitignore;
if test -d .git; then find .git -print0; fi
- ) | cpio -Hustar -o --quiet -0 -R 1000:1000 | gzip
+ ) | (
+ cpio -Hustar -o --quiet -0 -R 1000:1000 || \
+ cpio -Hustar -o --quiet -0
+ ) | gzip
';
die $!;
}