A simple "NameError" in aptBackend.py (Karmic)

Bug #393326 reported by Koray Eyinc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
packagekit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: packagekit-backend-apt

While removing unwanted "xserver-xorg-video-vmware" package via KPackageKit I got this error (similar to the Bug #388536 reported by Jonathan Thomas) :

***Details***
Error Type: Error Value: global name 'rescursive_text' is not defined File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1960, in main() File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1957, in main run(args, options.single) File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1919, in run backend.dispatcher(args) File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 632, in dispatcher self.dispatch_command(args[0], args[1:]) File : /usr/lib/python2.6/dist-packages/packagekit/backend.py, line 529, in dispatch_command self.get_requires(filters, package_ids, recursive) File : /usr/share/PackageKit/helpers/apt/aptBackend.py, line 1298, in get_requires recursive = text_to_bool(rescursive_text)

ProblemType: Bug
DistroRelease: (K)ubuntu karmic-alpha-2 (development branch)
Uname: 2.6.30-9-generic x86_64
Package / Version: packagekit-backend-apt (0.4.8-0ubuntu1)

packagekit-backend-apt:
  Installed: 0.4.8-0ubuntu1
  Candidate: 0.4.8-0ubuntu1
  Version table:
 *** 0.4.8-0ubuntu1 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

#I didn't attach a patch on purpose that this minor error might not be realized inside a whole patch file
#There is a typo error in "/usr/share/PackageKit/helpers/apt/aptBackend.py"
#"recursive = text_to_bool(rescursive_text)" (line 1298)
                             ^must be "recursive_text" as in the arguments of
   "get_requires" (line 1293) => "def get_requires(self, filter, ids, recursive_text):"

#I corrected the "NameError" in file "/usr/share/PackageKit/helpers/apt/aptBackend.py" as root
#Then attempted to remove unwanted xserver-xorg-video-* packages via KPackageKit.
#It did not repeat the error above and (advanced to the next stage this time) resolved dependencies as it should telling me it would remove "xserver-xorg-video-all" metapackage
#It seemed fixed (for me) because uninstallation went smoothly
#I could have removed it via apt-get autoremove command but I like the way KPackageKit integrates with the system now and want to see it working smoothly.

Related branches

Koray Eyinc (korayeyinc)
description: updated
tags: added: aptbackend.py-bug packagekit-backend-apt-bug
removed: aptbackend.py kpackagekit packagekit-backend-apt
description: updated
Koray Eyinc (korayeyinc)
description: updated
Koray Eyinc (korayeyinc)
description: updated
description: updated
Koray Eyinc (korayeyinc)
description: updated
description: updated
Koray Eyinc (korayeyinc)
description: updated
Koray Eyinc (korayeyinc)
description: updated
description: updated
Koray Eyinc (korayeyinc)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package packagekit - 0.4.8-0ubuntu3

---------------
packagekit (0.4.8-0ubuntu3) karmic; urgency=low

  * Add debian/patches/ignore_packages_in_conffiles.patch to avoid crashes
    when packages that are obsolete but not purged are on the system.
    (LP: #395459)
  * Fix typo that caused a NameError on some operations. Thanks to Koray Eyinc
    (LP: #393326)

 -- James Westby <email address hidden> Sat, 04 Jul 2009 15:54:45 -0400

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

Other bug subscribers

Remote bug watches

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