X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FGenerator%2FFile.pm;h=132b902356f8b259d710eb07056a1280dcf36012;hp=fb1dc5e8d900ac2b32550a81abd7768b61aa0185;hb=d6a1ae0d77398b2a7ed967e10e8420ac7d9980e5;hpb=8a8d1a82a2a778c546569ea1e6745be4594a0ff5 diff --git a/lib/Gruntmaster/Daemon/Generator/File.pm b/lib/Gruntmaster/Daemon/Generator/File.pm index fb1dc5e..132b902 100644 --- a/lib/Gruntmaster/Daemon/Generator/File.pm +++ b/lib/Gruntmaster/Daemon/Generator/File.pm @@ -8,7 +8,7 @@ use File::Copy qw/copy/; use File::Slurp qw/write_file/; use Log::Log4perl qw/get_logger/; -our $VERSION = "5999.000_001"; +our $VERSION = "5999.000_002"; ################################################## @@ -18,7 +18,8 @@ sub generate{ if (exists $meta->{infile}) { write_file 'input', $meta->{infile}[$test - 1] } else { - copy "/var/lib/gruntmasterd/pb/$meta->{problem}/$test.in", 'input' + my $ct = defined $Gruntmaster::Data::contest ? "ct/$Gruntmaster::Data::contest" : ''; + copy "/var/lib/gruntmasterd/$ct/pb/$meta->{problem}/$test.in", 'input' } }