Skip to content

Add setting to conditionally change custom repositories behavior#31

Open
maksimkurb wants to merge 3 commits into
fagiani:mainfrom
maksimkurb:feature/prepend-sources-list
Open

Add setting to conditionally change custom repositories behavior#31
maksimkurb wants to merge 3 commits into
fagiani:mainfrom
maksimkurb:feature/prepend-sources-list

Conversation

@maksimkurb

Copy link
Copy Markdown
Contributor

Fixes #29, #30

This PR introduces BPAPT_CUSTOM_REPOS, allowing users to control how custom repositories are added to the APT sources list. It supports three options:

  • append (default) – Custom repositories are added at the end of sources.list.
  • prepend – Custom repositories are added at the beginning of sources.list.
  • custom-only – Only custom repositories are included, omitting defaults.

This maintains the existing behavior by default while providing more flexibility.

Comment thread README.md

#### Repositories order
By default, all custom repositories added to the end of `sources.list` file.
If you want to change this behavior, you can configure it via `BPAPT_CUSTOM_REPO_ORDER` variable:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Need to fix typo: env is named BPAPT_CUSTOM_REPOS

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.

Override default apt repositories

1 participant