feat: apt's proxy through AptProxyMixin (NetOrk/netork#1397) #39

Merged
christianmanivong merged 1 commits from feat/apt-proxy-verify into master 2026-10-22 22:08:25 +00:00
Owner

Needs NAPALM/napalm-device-types feat/apt-proxy-verify (4.22.0).

  • get_package_proxy() is now apt's effective proxy, not the content of 00proxy.
  • New: get_package_proxy_report() and check_package_proxy().
  • configure_package_proxy() also comments out other proxy lines, reads the result back and fetches through the proxy. It fails when apt still fetches elsewhere.
  • Reads go over the exec channel, so no prompt can be mistaken for a line of apt's output. The file is written as before, through the staged _install_file_as_root.

OpenMediaVault inherits all of it. Version 0.14.0.

Needs NAPALM/napalm-device-types `feat/apt-proxy-verify` (4.22.0). - `get_package_proxy()` is now apt's effective proxy, not the content of `00proxy`. - New: `get_package_proxy_report()` and `check_package_proxy()`. - `configure_package_proxy()` also comments out other proxy lines, reads the result back and fetches through the proxy. It fails when apt still fetches elsewhere. - Reads go over the exec channel, so no prompt can be mistaken for a line of apt's output. The file is written as before, through the staged `_install_file_as_root`. OpenMediaVault inherits all of it. Version 0.14.0.
christianmanivong added 1 commit 2026-10-22 17:17:02 +00:00
feat: apt's proxy through AptProxyMixin (NetOrk/netork#1397)
CI / test (3.10) (push) Failing after 21s
CI / test (3.11) (push) Failing after 19s
CI / test (3.12) (push) Failing after 18s
CI / test (3.10) (pull_request) Failing after 19s
CI / test (3.11) (pull_request) Failing after 17s
CI / test (3.12) (pull_request) Failing after 16s
04f071afd0
get_package_proxy() is what apt-config dump says, not 00proxy alone: a
proxy in 90curtin-aptproxy or /etc/apt/apt.conf wins over it and was
missed. The driver now supplies only the transports: reads on the exec
channel, root commands through _root_outcome, the file through the staged
_install_file_as_root. New: get_package_proxy_report() and
check_package_proxy(). configure_package_proxy() also comments out other
proxy lines, reads the result back and fetches through the proxy.

Requires napalm-device-types 4.22.0; version 0.14.0.
christianmanivong merged commit 91b2025074 into master 2026-10-22 22:08:25 +00:00
christianmanivong deleted branch feat/apt-proxy-verify 2026-10-22 22:08:25 +00:00
Sign in to join this conversation.