From 189ef750ba7c3e2a9d4e1f00e5d20ca077c8b312 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sun, 4 Apr 2010 19:23:28 +0000 Subject: [PATCH] Quote the \ for the output to db_load --- bin/wanna-build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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), -- 2.39.2