Bug 495849 - Div-0 error in PackageKit
Summary: Div-0 error in PackageKit
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: rawhide
Hardware: powerpc
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-15 05:00 UTC by Jeremy Huddleston
Modified: 2009-06-03 09:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-03 09:12:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeremy Huddleston 2009-04-15 05:00:03 UTC
PackageKit dies with a div-0 error while installing some rpms:

Error Type: <type 'exceptions.ZeroDivisionError'>
Error Value: long division or modulo by zero
  File : /usr/lib/python2.6/site-packages/yum/rpmtrans.py, line 370, in
callback
    self._instProgress( bytes, total, h )
  File : /usr/lib/python2.6/site-packages/yum/rpmtrans.py, line 454, in
_instProgress
    self.complete_actions, self.total_actions)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2664, in
event
    val = (te_current*100L)/te_total

---

This was while installing mjpegtools-libs-1.9.0-0.6.rc5.fc10 from the
rpmfusion-free-rawhide repo and also occurs with jakarta-commons-el-
javadoc-1.0-9.4.fc10 in rawhide

Comment 1 Richard Hughes 2009-04-15 07:44:00 UTC
commit f27e7974bfe9bf45c093d8bfe10c83f635192816
Author: Richard Hughes <richard>
Date:   Wed Apr 15 08:37:24 2009 +0100

    bugfix: check the subtransaction and transaction totals are not zero before using them. Fixes a crash on ppc in rh#495849


Note You need to log in before you can comment on or make changes to this bug.