Skip to content

Commit

Permalink
Switch to Extract::CommandLine
Browse files Browse the repository at this point in the history
Use this explicitly as `Extract::ArchiveTar` gives "Out of memory"
errors even when using `Archive::Tar->extract_archive`.
  • Loading branch information
zmughal committed Aug 12, 2023
1 parent 8fc1404 commit 2d58e92
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion alienfile
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,15 @@ share {
prefer => 1,
);

plugin 'Extract' => $data->{bucket_format};
if( $data->{bucket_format} eq 'tar.gz' ) {
# Extract::CommandLine more reliable than
# Extract::ArchiveTar for large .tar.gz.
#
# Extract::ArchiveTar gives an "Out of memory!" error.
plugin 'Extract::CommandLine' => $data->{bucket_format};
} else {
plugin 'Extract' => $data->{bucket_format};
}

patch [
sub {
Expand Down

0 comments on commit 2d58e92

Please sign in to comment.