Skip to content

feat: auto-load extra repos file#27

Closed
simonbeaudoin0935 wants to merge 2 commits into
mainfrom
dev/simon_beaudoin_extra_repos
Closed

feat: auto-load extra repos file#27
simonbeaudoin0935 wants to merge 2 commits into
mainfrom
dev/simon_beaudoin_extra_repos

Conversation

@simonbeaudoin0935

@simonbeaudoin0935 simonbeaudoin0935 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Add automatic support for package-local extra apt repositories in docker_deb_build.py.

What changed

  • Auto-load optional debian/extra-repositories.txt from the package source tree.
  • Merge file-based entries with CLI --extra-repo entries.
  • Preserve order and de-duplicate entries.
  • Support file entries in two forms:
    • Global: deb ...
    • Suite-filtered: [noble,questing] deb ...
  • Suite filters are exact matches against the build suite.
  • unstable and sid are treated as equivalent for filter matching.
  • Malformed bracketed lines fail fast.
  • Use safer shell quoting when passing repository and package paths to sbuild.
  • Update README to document repo-local extra repository support.

Why

This lets package repos bootstrap local Docker builds from a shared, repo-owned
debian/extra-repositories.txt contract, so CI and local behavior stay aligned.

Load debian/extra-repositories.txt automatically.
Support suite filters and suite placeholders.
Merge with CLI --extra-repo entries.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
@simonbeaudoin0935 simonbeaudoin0935 force-pushed the dev/simon_beaudoin_extra_repos branch from 84b5198 to 3611057 Compare June 15, 2026 17:13
Keep only global entries and explicit suite-filtered entries
from debian/extra-repositories.txt.

Remove wildcard and placeholder handling.
Keep sid/unstable alias matching for suite filters.
Fail fast on malformed scoped lines.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant