Skip to content

Commit b222b6f

Browse files
committed
Fixed Bz2 extractor on custom FS
1 parent 0aeba58 commit b222b6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extractor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (e *Extractor) Bz2(ctx context.Context, body io.Reader, location string, re
8989
}
9090

9191
if kind.Extension == "tar" {
92-
return Tar(ctx, body, location, rename)
92+
return e.Tar(ctx, body, location, rename)
9393
}
9494

9595
err = e.copy(ctx, location, 0666, body)

extractor_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func TestExtractors(t *testing.T) {
2121
}
2222
testCases := []archiveTest{
2323
{"TarGz", paths.New("testdata/archive.tar.gz")},
24+
{"TarBz2", paths.New("testdata/archive.tar.bz2")},
2425
{"TarXz", paths.New("testdata/archive.tar.xz")},
2526
{"Zip", paths.New("testdata/archive.zip")},
2627
}

0 commit comments

Comments
 (0)