projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f52d3c5
)
correctly decode JSON arrays also in do_high
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Oct 2011 12:05:47 +0000
(14:05 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Oct 2011 12:05:47 +0000
(14:05 +0200)
lib/APKPM/Gearman/Client.pm
patch
|
blob
|
history
diff --git
a/lib/APKPM/Gearman/Client.pm
b/lib/APKPM/Gearman/Client.pm
index
932bd5a
..
83078a7
100644
(file)
--- a/
lib/APKPM/Gearman/Client.pm
+++ b/
lib/APKPM/Gearman/Client.pm
@@
-44,7
+44,7
@@
sub do_high {
my $ret = $self->gc->do_task( $task );
warn "## $func $args = ",dump($ret);
- return $$ret =~ m/^
{
/ ? JSON::XS::decode_json($$ret) : $$ret;
+ return $$ret =~ m/^
[{\[]
/ ? JSON::XS::decode_json($$ret) : $$ret;
}
1;