Public bug reported:

Binary package hint: update-manager

Running update-manager-text with updates available, and then moving the
selection bar over an individual update generates the following
traceback:

  Traceback (most recent call last):
  File 
"/usr/lib/python2.6/dist-packages/UpdateManagerText/UpdateManagerText.py", line 
133, in checkbox_changed
     descr = self.get_changelog(pkg)
  File 
"/usr/lib/python2.6/dist-packages/UpdateManagerText/UpdateManagerText.py", line 
118, in get_changelog
     descr = self.cache.get_changelog (name, lock)
   TypeError: get_changelog() takes exactly 2 arguments (3 given)

Looking at the bzr source for update-manager, sure enough, in
UpdateManagerText/UpdateManagerText.py the lock argument is passed, but
MyCache.get_changelog() only takes the package name. It looks like the
desired interface is MyCache.get_news_or_changelog(), given that that
takes an additional lock argument.

There's a secondary bug that if MyCache.get_news_or_changelog(), then
the changelog is downloaded, but only the first character of the
changelog is displayed, due to return self.cache.all_changes[name][0]
(it seems a list of changes was expected).

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: update-manager-text 1:0.100.1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager
Uname: Linux 2.6.28-9-server x86_64

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
update-manager-text gets a TypeError on self.cache.get_changelog()
https://bugs.launchpad.net/bugs/341577
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to