Kubuntu Distribution Upgrade tool: self.progressbar of KDECdromProgressAdapter class in DistUpgradeViewKDE.py

Bug #112519 reported by sonofusion82
4
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

as I have a slow internet connection, I have downloaded the alternate CD and executed the cdromupgrade script but it crashes even after I tried to fix the gksu to kdesu that leads me to DistUpgradeViewKDE.py in cdrom/dists/feisty/main/dist-upgrader/binary-all/feisty.tar.gz that contains the following class

class KDECdromProgressAdapter(apt.progress.CdromProgress):
    """ Report the cdrom add progress """
    def __init__(self, parent):
        self.status = parent.window_main.label_status
        self.progress = parent.window_main.progressbar_cache
        self.parent = parent

    def update(self, text, step):
        """ update is called regularly so that the gui can be redrawn """
        if text:
          self.status.setText(text)
 percent = step
        self.progressbar.setProgress(percent)
        KApplication.kApplication().processEvents()

    def askCdromName(self):
        return (False, "")

    def changeCdrom(self):
        return False

I believe in __init__ the 2nd line should be
self.progressbar = parent.window_main.progressbar_cache
as self.progressbar is not defined in the update function.

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The line your are referring to has been fixed at least in the Gutsy version of update-manager - version 0.81. Thanks again for helping out!

Changed in update-manager:
importance: Undecided → Low
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.