Skip to content

Commit

Permalink
[backend] do not strip out the macro sections in getprojpack, we want…
Browse files Browse the repository at this point in the history
… to compare them in the scheduler
  • Loading branch information
mlschroe committed Jul 31, 2013
1 parent dc9faca commit 8bb5e0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/bs_srcserver
Expand Up @@ -2637,10 +2637,10 @@ sub getprojpack {
if ($cgi->{'withconfig'}) {
my $config = readstr("$projectsdir/$projid.conf", 1);
if ($config) {
my $s1 = '^\s*macros:\s*$.*?^\s*:macros\s*$';
my $s2 = '^\s*macros:\s*$.*\Z';
$config =~ s/$s1//gmsi;
$config =~ s/$s2//gmsi;
#my $s1 = '^\s*macros:\s*$.*?^\s*:macros\s*$';
#my $s2 = '^\s*macros:\s*$.*\Z';
#$config =~ s/$s1//gmsi;
#$config =~ s/$s2//gmsi;
$jinfo->{'config'} = $config unless $config =~ /^\s*$/s;
}
}
Expand Down

0 comments on commit 8bb5e0e

Please sign in to comment.