sources: refactor deb source into module.
Metadata
Current evaluation
Merged refactoring changes that extract Deb source logic into a dedicated module at sources/_deb.py. This restructuring advances progress on Launchpad bug #1648906 and passes CI checks with maintained code coverage.
Suggested action: —
No scores available.
Issue body
This PR makes more progress on LP: [#1648906](https://bugs.launchpad.net/snapcraft/+bug/1648906) by extracting the Deb source into `sources/_deb.py`.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged refactoring changes that extract Deb source logic into a dedicated module at sources/_deb.py. This restructuring advances progress on Launchpad bug #1648906 and passes CI checks with maintained code coverage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged refactoring that extracts Debian source handling into sources/_deb.py. The change improves code organization and increases overall test coverage to 96.24%. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a refactor that extracts Debian source handling into sources/_deb.py. This advances progress on Launchpad bug #1648906 and maintains code coverage above 96 percent. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #269 sources: support "deb" sources | craft-parts | merged | Merged. Adds deb source support by unpacking packages via dpkg-deb and refactors extract_deb() for reuse. Resolves CRAFT-117, approved by one reviewer, passes CI, and changes +289/-10 lines across seven files. | |
| #968 sources: refactor subversion source into module. | snapcraft | merged | Merged refactoring that extracts the Subversion source handler into a dedicated module. Advances Launchpad bug #1648906, passed coverage checks, and received author approval. Net change: +170/-129 lines across four files. | |
| #961 sources: refactor local source into module. | snapcraft | merged | Merged after approval and CI. Refactored the local source into sources/_local.py, advancing Launchpad bug #1648906. Modified four files with a +236/-191 line change and slightly increased overall code coverage. | |
| #811 Support deb files as sources | snapcraft | merged | Merged support for using .deb files as sources. The change integrates a minimal test deb package, modifies seven files, and was approved by a reviewer. Resolves LP #1604669. |