From: Kurt Roeckx Date: Sun, 4 Apr 2010 19:23:28 +0000 (+0000) Subject: Quote the \ for the output to db_load X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=189ef750ba7c3e2a9d4e1f00e5d20ca077c8b312 Quote the \ for the output to db_load --- diff --git a/bin/wanna-build b/bin/wanna-build index efe7aa3..b1a3a3a 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -1894,8 +1894,10 @@ Text could contain further %. To start with !, use %! return $var->{scnt}{'Needs-Build'} + 1 if $pkg->{'state'} eq 'Needs-Build'; return ""; }, $pkg, $var), 'F' => make_fmt( sub { return "" unless $pkg->{'failed'}; + my $failed = $pkg->{'failed'}; + $failed =~ s/\\/\\\\/g; return $pkg->{'package'}."#".$arch."-failure\n ". - join("\\0a",split("\n",$pkg->{'failed'}))."\\0a\n"; }, $pkg, $var), + join("\\0a",split("\n",$failed))."\\0a\n"; }, $pkg, $var), 'D' => make_fmt( sub { return "" unless $pkg->{'bd_problem'}; return $pkg->{'package'}."#".$arch."-bd-problem\n". join("\\0a",split("\n",$pkg->{'bd_problem'}))."\\0a\n"; }, $pkg, $var),