Add an internal debug level global:
- Level 1 (-d) currently does nothing.
- Level 2 (-d -d) enables libfetch debugging (quite verbose) so it's possible to see what pkg is attempting to download without having to sniff traffic.
Differential D35756
pkg: Add limited --debug/-d support brooks on Jul 8 2022, 12:16 PM. Authored by Tags None Referenced Files
Subscribers
Details Add an internal debug level global:
Diff Detail
Event TimelineComment Actions I wrote this because it's too hard to tell what's going on when some "enterprise" middle box is corrupting fetches. (We've seen this from two sites so far when people are trying to bootstrap CheriBSD packages and getting blobs of html back instead of their intended downloads.) You can't even see what URLs are being downloaded in order to start debugging and the error "No trusted fingerprint found matching package's certificate" isn't informative.
Comment Actions I spotted a few nits, but they're not worth holding up the review for as they can be fixed before the commit is pushed.
|