Syntax Error - UpdateManager/Core/utils.py

Bug #615923 reported by Ynot
46
This bug affects 18 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: update-manager

Came across this while poking around (trying to solve a boot issue with x-server 1.9)
I don't know python at all, but it just looked wrong

File: /usr/lib/python2.6/dist-packages/DistUpgrade/utils.py
Lines (on my system): 195 - 204

  # then synaptic
  elif os.path.exists(SYNAPTIC_CONF_FILE):
    cnd = apt_pkg.Configuration()
    apt_pkg.read_config_file(cnf, SYNAPTIC_CONF_FILE)
    use_proxy = cnf.find_b("Synaptic::useProxy", False)
    if use_proxy:
      proxy_host = cnf.find("Synaptic::httpProxy")
      proxy_port = str(cnf.find_i("Synaptic::httpProxyPort"))
      if proxy_host and proxy_port:
        proxy = "http://%s:%s/" % (proxy_host, proxy_port)

Notice the "cnd = apt_pkg.Configuration()"
when all other lines refer to variable "cnf"

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: update-manager-core 1:0.142.6 [modified: usr/share/pyshared/DistUpgrade/utils.py]
ProcVersionSignature: Ubuntu 2.6.35-14.20-generic 2.6.35
Uname: Linux 2.6.35-14-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue Aug 10 16:42:47 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager

Revision history for this message
Ynot (tatkinson321) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in update-manager (Ubuntu):
importance: Undecided → High
status: New → Triaged
summary: - Possible Syntax Error - /usr/lib/python2.6/dist-
- packages/DistUpgrade/utils.py
+ Syntax Error - UpdateManager/Core/utils.py
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.142.8

---------------
update-manager (1:0.142.8) maverick; urgency=low

  * UpdateManager/Core/utils.py:
    - fix typo (LP: #615923)
  * UpdateManager/UpdateManager.py:
    - when NM thinks we have no network, do not disable the buttons
      because for dialup users NM is frequently wrong and does not
      get that there is a network-connection (thanks to "gambs")
 -- Michael Vogt <email address hidden> Thu, 12 Aug 2010 11:53:47 +0200

Changed in update-manager (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.