Skip to content

Commit

Permalink
os checks no longer need to decode JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed Mar 22, 2014
1 parent 7c4c62d commit 9d9f832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,6 +1,8 @@
Revision history for CPAN-Testers-Data-Generator
================================================

- arch os no longer needs to decode JSON.

1.13 2014-03-20
- enable mysql_auto_reconnect.
- updates from live fixes.
Expand Down
4 changes: 2 additions & 2 deletions lib/CPAN/Testers/Data/Generator.pm
Expand Up @@ -1296,8 +1296,8 @@ sub _check_arch_os {
return if($text && $self->{report}{osname} && lc $text eq lc $self->{report}{osname});

#print STDERR "_check: metabase=".Dumper($self->{report}{metabase})."\n";
my $fact = decode_json($self->{report}{metabase}{'CPAN::Testers::Fact::LegacyReport'}{content});
my $textreport = $fact->{textreport};
my $textreport = $self->{report}{metabase}{'CPAN::Testers::Fact::LegacyReport'}{content}{textreport};
$textreport =~ s/\\n/\n/g; # newlines may be escaped

# create a fake mail, as CTC::Article parses a mail like text block
my $mail = <<EMAIL;
Expand Down

0 comments on commit 9d9f832

Please sign in to comment.