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

pkg bootstrap selects wrong PACKAGESITE #2329

Open
arrowd opened this issue Oct 31, 2024 · 0 comments
Open

pkg bootstrap selects wrong PACKAGESITE #2329

arrowd opened this issue Oct 31, 2024 · 0 comments

Comments

@arrowd
Copy link
Contributor

arrowd commented Oct 31, 2024

The config parsing code in /usr/src/usr.sbin/pkg/config.c only takes into account the last parsed UCL object. This is too naive and results in unexpected behavior.

For example, having this config

FreeBSD: { enabled: false }
MyRepo: {
   url: my_url
   enabled: false
}

MyRepo: {
    enabled: true
}

results in the last object being used to fill the program's config structure. The url become NULL, causing bootstrap to download from the official pkg repo despite it being disabled.

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

No branches or pull requests

1 participant