File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -679,7 +679,7 @@ sub find_pod {
679
679
query => $query ,
680
680
},
681
681
);
682
- return $pod_file -> {hits }{hits }[0];
682
+ return $pod_file -> {hits }{hits }[0]-> { _source } ;
683
683
}
684
684
else {
685
685
return $file ;
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ sub get : Path('') : Args(1) {
38
38
my ( $self , $c , $module ) = @_ ;
39
39
$module = $c -> model(' ESQuery' )-> file-> find_pod($module )
40
40
or $c -> detach( ' /not_found' , [] );
41
- $c -> forward( ' find' ,
42
- [ map { $module -> {_source }{$_ } } qw( author release path) ] );
41
+ $c -> forward( ' find' , [ map { $module -> {$_ } } qw( author release path) ] );
43
42
}
44
43
45
44
sub find_dist_links {
Original file line number Diff line number Diff line change @@ -87,8 +87,11 @@ sub path {
87
87
my $source = $source_base -> child( $distvname , @file );
88
88
return $source
89
89
if -e $source ;
90
+
91
+ # if the directory exists, we already extracted the archive, so if the
92
+ # file didn't exist, we can stop here
90
93
return undef
91
- if -e $source_base -> child($distvname ); # previously extracted, but file does not exist
94
+ if -e $source_base -> child($distvname );
92
95
93
96
my $release_data
94
97
= $self -> es_query-> release-> by_author_and_name( $pauseid , $distvname )
You can’t perform that action at this time.
0 commit comments