Comment 55 for bug 186465

Revision history for this message
xfx (morphx-gmail) wrote :

Thanks for the suggestions James -- I'll give it a try and I'll post the logs.

-------------------

Not sure if this will help (to the developers at least), I have found the code that is hanging the process:

[Document: DistUpgradeViewGtk.py
LINE: 129]

def pulse(self):
 # FIXME: move the status_str and progress_str into python-apt
 # (python-apt need i18n first for this)
 FetchProgress.pulse(self)
 self.progress.set_fraction(self.percent/100.0)
 currentItem = self.currentItems + 1
 if currentItem > self.totalItems:
     currentItem = self.totalItems

 if self.currentCPS > 0:
     self.status.set_text(_("Fetching file %li of %li at %sb/s") % (currentItem, self.totalItems, apt_pkg.SizeToStr(self.currentCPS)))
     self.progress.set_text(_("About %s remaining") % FuzzyTimeToStr(self.eta))
 else:
     self.status.set_text(_("Fetching file %li of %li") % (currentItem, self.totalItems))
     self.progress.set_text(" ")

 while gtk.events_pending():
     gtk.main_iteration()
 return (not self.canceled)

The above "while" loop never exists as it looks like the the gtk.events_pending() function is always returning "true".