]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Quote the \ for the output to db_load
authorKurt Roeckx <kroeckx@grieg.debian.org>
Sun, 4 Apr 2010 19:23:28 +0000 (19:23 +0000)
committerKurt Roeckx <kroeckx@grieg.debian.org>
Sun, 4 Apr 2010 19:23:28 +0000 (19:23 +0000)
bin/wanna-build

index efe7aa37adf780bd752fd42e26418bd25c03f5ea..b1a3a3a6f5190835a0b1fed74950ace244637de4 100755 (executable)
@@ -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),