https://bugs.kde.org/show_bug.cgi?id=494498

--- Comment #1 from Phil Hord <phil.h...@gmail.com> ---
I thought the python error may be causing some problem, and I fixed it
manually.  I tried the upgrade again and it succeeded this time.  I don't know
if that was really the reason for the failure, though.  I'm skeptical since it
occurred several times before finally quitting. But maybe it's some lazy error
checking code finally killing it in the end after watching the errors.  

The fix for this was trivial.

diff --git tmp/DistUpgradeFetcherKDE.py
usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherKDE.py
index 9d6e9e4..cea3873 100644
--- tmp/DistUpgradeFetcherKDE.py
+++ usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherKDE.py
@@ -213,9 +213,9 @@ class
KDEAcquireProgressAdapter(apt.progress.base.AcquireProgress):

     def pulse(self, owner):
         apt.progress.base.AcquireProgress.pulse(self, owner)
-        self.dialog.installationProgress.setValue(
+        self.dialog.installationProgress.setValue(int(
             (self.current_bytes + self.current_items) /
-            float(self.total_bytes + self.total_items) * 100)
+            float(self.total_bytes + self.total_items) * 100))
         current_item = self.current_items + 1
         if current_item > self.total_items:
             current_item = self.total_items

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to