Public bug reported:

Binary package hint: apt

This is similar to bug 277493 but not a duplicate.

The /etc/cron.daily/apt cron script set's some of the proxy
configuration from the admin user's gconf configuration but it fails to
set the no_proxy variable which maps to gconf's "ignore_hosts" key in
/system/http_proxy/.  Following is a patch to fix this:

--- /tmp/apt.cron       2009-03-30 09:10:23.000000000 -0400
+++ /etc/cron.daily/apt 2009-03-30 09:10:32.000000000 -0400
@@ -207,6 +207,12 @@
        if [ "$use" = "true" ] && [ -n "$host" ] && [ -n "$port" ]; then
                export http_proxy="http://$host:$port/";
        fi
+       no_proxy=$(sudo -u "$admin_user" gconftool --get 
/system/http_proxy/ignore_hosts)
+       no_proxy=${no_proxy#\[}
+       no_proxy=${no_proxy%\]}
+       if [ -n "no_proxy" ]; then
+               export no_proxy
+       fi
 fi
 
 # sleep random amount of time

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
cront script should observe _all_ of the admin users proxy variables
https://bugs.launchpad.net/bugs/351579
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to