Skip to content

Commit 2d58e92

Browse files
committed
Switch to Extract::CommandLine
Use this explicitly as `Extract::ArchiveTar` gives "Out of memory" errors even when using `Archive::Tar->extract_archive`.
1 parent 8fc1404 commit 2d58e92

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

alienfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,15 @@ share {
242242
prefer => 1,
243243
);
244244

245-
plugin 'Extract' => $data->{bucket_format};
245+
if( $data->{bucket_format} eq 'tar.gz' ) {
246+
# Extract::CommandLine more reliable than
247+
# Extract::ArchiveTar for large .tar.gz.
248+
#
249+
# Extract::ArchiveTar gives an "Out of memory!" error.
250+
plugin 'Extract::CommandLine' => $data->{bucket_format};
251+
} else {
252+
plugin 'Extract' => $data->{bucket_format};
253+
}
246254

247255
patch [
248256
sub {

0 commit comments

Comments
 (0)