Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom repo at first lime of sources.list #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fagianijunior
Copy link
Collaborator

This pull add the entries of Aptfile starting with :repo: to be prepended to the existing /etc/apt/sources.list, ensuring that custom repositories have higher precedence.

Changes Included:
Custom repositories are added to the beginning of /etc/apt/sources.list.

Benefits:
Custom repositories now take precedence during package resolution.
Ensures compatibility with existing repositories while enabling user-defined flexibility.

Notes:
This update preserves backward compatibility and will not affect setups without a properly configured Aptfile.

@maksimkurb
Copy link
Contributor

maksimkurb commented Dec 28, 2024

Hello, thanks for this PR!

I am not sure that this would be backward-compatible if someone already used :repo:deb in their Aptfile, previously they were added to the end of sources.list, but now they would be always added to the front and this can break some currently working installations. So after this change custom repositories would have higher priority than original ones if users added them to their Aptfile.

It can be ok if you somehow note this change as breaking in changelog or some additional env variable could be added to control this behavior.

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.

2 participants