]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make pkg(7) use environment variables specified in pkg.conf
authorMoritz Schmitt <moritz@schmi.tt>
Tue, 27 Apr 2021 01:59:12 +0000 (03:59 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 5 May 2021 07:16:30 +0000 (09:16 +0200)
commit3e1022b4eb5f452a8bbcb651f3367417988e75ab
tree4ec29e8f7822943e718a6b7e50bba877503b1fcb
parent2f2bbc485f2263ab8eb9d272a22d32c06f9e94e9
Make pkg(7) use environment variables specified in pkg.conf

Modify /usr/sbin/pkg to use environment variables specified in pkg.conf.
This allows control over underlying libraries like fetch(3), which can
be configured by setting HTTP_PROXY.

Differential Revision: https://reviews.freebsd.org/D29820

(cherry picked from commit e869d3c60147bbb226b5ad97d2ef73391aeebafa)
usr.sbin/pkg/config.c
usr.sbin/pkg/config.h