Skip to content

Conversation

@analytically
Copy link
Contributor

Extends archive extraction to support bzip2 compressed files (.bz2) and bzip2 compressed tarballs (.tar.bz2, .tbz2, .tb2) in addition to the existing gzip support.

Implementation:

  • Added application/x-bzip2 and application/x-bzip MIME type detection
  • Added bunzip2 decompression handler in inflate()
  • Extended extractArchive() to handle two-stage bzip2 extraction
  • Mirrors existing gzip pattern for consistency

Supported formats after this change:

  • .tar, .tar.gz/.tgz, .tar.bz2/.tbz2/.tb2, .gz, .bz2, .zip

Updated documentation in README.md to reflect new capabilities.

Fixes #81

Extends archive extraction to support bzip2 compressed files (.bz2) and
bzip2 compressed tarballs (.tar.bz2, .tbz2, .tb2) in addition to the
existing gzip support.

Implementation:
- Added application/x-bzip2 and application/x-bzip MIME type detection
- Added bunzip2 decompression handler in inflate()
- Extended extractArchive() to handle two-stage bzip2 extraction
- Mirrors existing gzip pattern for consistency

Supported formats after this change:
- .tar, .tar.gz/.tgz, .tar.bz2/.tbz2/.tb2, .gz, .bz2, .zip

Updated documentation in README.md to reflect new capabilities.

Fixes concourse#81

Signed-off-by: Mathias Bogaert <[email protected]>
Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - TY!

@taylorsilva taylorsilva merged commit ca17ed3 into concourse:master Nov 28, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Pull Requests Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Support bzip2 archive

2 participants