fix(inspectors/deb): handle more compression methods
Metadata
Current evaluation
Merged. The DEB inspector now handles xz-compressed control files and gzip-compressed data files, failing if artifact name or version extraction fails. Resolves #337. Approved by two reviewers and passed CI checks.
Suggested action: —
No scores available.
Issue body
Handle control files compressed with xz and data files compressed
with gzip. Fail if artifact name and version are not extracted
(meaning that the control file was not properly read and parsed).
Fixes #337
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. The DEB inspector now handles xz-compressed control files and gzip-compressed data files, failing if artifact name or version extraction fails. Resolves #337. Approved by two reviewers and passed CI checks. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #596 fix(i/deb): parse uncompressed control and data files | fetch-service | merged | Merged. Updates the Debian package inspector to parse uncompressed control.tar and data.tar files within .deb archives. Approved by two reviewers, passed all CI checks, and refactored to avoid stacked deferred calls. (+25/-4 lines) | |
| #61 inspectors: add apt and deb file inspectors | fetch-service | merged | Merged. Added apt and deb file inspectors to validate .deb packages against Packages.xz and verify Packages.xz signatures against InRelease files. The stateful implementation includes caching and received approval from two reviewers. | |
| #312 fix(inspectors/deb): check scan return value | fetch-service | merged | Merged a fix for the deb inspector to validate the scan return value. Approved by two reviewers and integrated into the codebase, though the final diff recorded zero lines changed. | |
| #308 fix(inspectors/apt): rejection fix and additional tests | fetch-service | merged | Merged fix for apt inspector to reject instead of exiting on translation file uncompression failures, plus added inspector tests. Approved by two reviewers and passed CI. | |
| #400 fix: bin inspector must not reject non-tar artifacts | fetch-service | merged | Merged fix updating the bin inspector to skip non-tar xzipped artifacts instead of returning an error. Approved by two reviewers and passed CI, resolving the artifact rejection issue. |