diff --git a/network/update-proxy-configs b/network/update-proxy-configs index 421bc96..fe6781a 100755 --- a/network/update-proxy-configs +++ b/network/update-proxy-configs @@ -108,6 +108,22 @@ $PROXY_CONF_ENTRY EOF fi +# Pacman (archlinux) also +if [ -d /etc/pacman.d ]; then + if [ -n "$PROXY_ADDR" ]; then + cat > /etc/pacman.d/01-qubes-proxy.conf < %o +EOF + else + rm -r /etc/pacman.d/01-qubes-proxy.conf + fi +fi + # DNF configuration doesn't support including other files # https://bugzilla.redhat.com/show_bug.cgi?id=1352234 if [ -e /etc/dnf/dnf.conf ]; then @@ -119,8 +135,3 @@ fi if [ -e /etc/PackageKit/PackageKit.conf ]; then update_conf /etc/PackageKit/PackageKit.conf "ProxyHTTP=$PROXY_ADDR" fi - -# Pacman (archlinux) also -if [ -e /etc/pacman.conf ]; then - update_conf /etc/pacman.conf "XferCommand = http_proxy=$PROXY_ADDR /usr/bin/curl -C - -f %u > %o" -fi