Bug#506843: update-manager: changelogs should check APT config for proxy
Gábor Németh
gabor.a.nemeth at ericsson.com
Tue Nov 25 08:57:03 UTC 2008
Package: update-manager
Version: 0.68.debian-7
Severity: normal
This version of u-m does not check for proxy settings in apt.conf,
therefore changelogs do not appear when behind a firewall.
A solution is included since upstream version 0.93.1; please update from
that or consider adding a trivial patch like this:
diff -r e504f6951ca2 -r 294afd3a9085 UpdateManager.py
--- a/UpdateManager.py Tue Nov 25 08:50:13 2008 +0100
+++ b/UpdateManager.py Tue Nov 25 09:24:44 2008 +0100
@@ -402,12 +401,16 @@
def init_proxy(self):
# proxy settings, first check for http_proxy environment (always
# wins),
+ # then set from apt config,
# then look into synaptics conffile, then into gconf
if os.getenv("http_proxy"):
return
SYNAPTIC_CONF_FILE = "%s/.synaptic/synaptic.conf" %
pwd.getpwuid(0)[5]
proxy = None
- if os.path.exists(SYNAPTIC_CONF_FILE):
+ apt_pkg.InitConfig()
+ if apt_pkg.Config.Find("Acquire::http::Proxy") != '':
+ proxy = apt_pkg.Config.Find("Acquire::http::Proxy")
+ elif os.path.exists(SYNAPTIC_CONF_FILE):
cnf = apt_pkg.newConfiguration()
apt_pkg.ReadConfigFile(cnf, SYNAPTIC_CONF_FILE)
use_proxy = cnf.FindB("Synaptic::useProxy", False)
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages update-manager depends on:
ii gconf2 2.22.0-1 GNOME configuration
database syste
ii libgnome2-perl 1.042-1+b1 Perl interface to the GNOME
librar
ii python 2.5.2-3 An interactive high-level
object-o
ii python-dbus 0.82.4-2 simple interprocess
messaging syst
ii python-glade2 2.12.1-6 GTK+ bindings: Glade support
ii python-gnome2 2.22.0-1 Python bindings for the
GNOME desk
ii python-support 0.8.4 automated rebuilding
support for P
ii python-vte 1:0.16.14-4 Python bindings for the VTE
widget
ii software-properties-gtk 0.60.debian-1.1 manage the repositories
that you i
ii synaptic 0.62.1 Graphical package manager
ii update-manager-core 0.68.debian-7 APT update manager core
functional
update-manager recommends no packages.
Versions of packages update-manager suggests:
ii update-notifier 0.70.7.debian-5 Daemon which notifies about
packag
More information about the pkg-gnome-maintainers
mailing list