Skip to content
New issue

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

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

Already on GitHub? # to your account

pkg bootstrap selects wrong PACKAGESITE #2329

Closed
arrowd opened this issue Oct 31, 2024 · 1 comment
Closed

pkg bootstrap selects wrong PACKAGESITE #2329

arrowd opened this issue Oct 31, 2024 · 1 comment

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.

@bapt
Copy link
Member

bapt commented Jan 14, 2025

fixed in head, will be merged soon in stable

@bapt bapt closed this as completed Jan 14, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants