Bug 495849 - Div-0 error in PackageKit
Div-0 error in PackageKit
Product: Fedora
Classification: Fedora
Component: PackageKit (Show other bugs)
powerpc Linux
low Severity medium
: ---
: ---
Assigned To: Richard Hughes
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-04-15 01:00 EDT by Jeremy Huddleston
Modified: 2009-06-03 05:12 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-06-03 05:12:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jeremy Huddleston 2009-04-15 01:00:03 EDT
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
    self._instProgress( bytes, total, h )
  File : /usr/lib/python2.6/site-packages/yum/rpmtrans.py, line 454, in
    self.complete_actions, self.total_actions)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2664, in
    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 03:44:00 EDT
commit f27e7974bfe9bf45c093d8bfe10c83f635192816
Author: Richard Hughes <richard@hughsie.com>
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.