crashes if a package fails to get marked for upgrade

Bug #571734 reported by Michael Vogt
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Low
Unassigned
Nominated for Karmic by Bernhard Seibold
Lucid
Fix Released
Low
Unassigned

Bug Description

Binary package hint: unattended-upgrades

When a package is marked for upgrade but can not be upgraded (a rare situation) it fails with the following error:

...
package 'libcompizconfig0-dev' upgradable but fails to be marked for upgrade (E:Unable to correct problems, you have held broken packages.)
Traceback (most recent call last):
  File "/usr/bin/unattended-upgrade", line 490, in <module>
    main()
  File "/usr/bin/unattended-upgrade", line 306, in main
    rewind_cache(cache, pkgs_to_ugprade)
NameError: global name 'pkgs_to_ugprade' is not defined
...

This is trivial to fix.

TEST CASE:
- regression test is enough, the fix is a one line change

Michael Vogt (mvo)
Changed in unattended-upgrades (Ubuntu Lucid):
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted unattended-upgrades into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in unattended-upgrades (Ubuntu Lucid):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unattended-upgrades - 0.55ubuntu4

---------------
unattended-upgrades (0.55ubuntu4) lucid-proposed; urgency=low

  * unattended-upgrade:
    - fix rewind_cache if a pkg fails to get marked for upgrade
      (LP: #571734)
 -- Michael Vogt <email address hidden> Thu, 29 Apr 2010 16:39:45 +0200

Changed in unattended-upgrades (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Paul Elliott (omahn) wrote :

Successfully installed and verified unattended-upgrades 0.55ubuntu4 from lucid-proposed fixes the typo.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to maverick.

Changed in unattended-upgrades (Ubuntu):
status: Fix Committed → Fix Released
tags: added: testcase
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.