Bug 495849

Summary: Div-0 error in PackageKit
Product: [Fedora] Fedora Reporter: Jeremy Huddleston <jeremyhu>
Component: PackageKitAssignee: Richard Hughes <richard>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: lmacken, rhughes, richard, robin.norwood, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-03 09:12:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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