Bug 465722

Summary: Click Package collections -> An internal system error has occurred on Add/Remove Software.
Product: [Fedora] Fedora Reporter: sangu <sangu.fedora>
Component: gnome-packagekitAssignee: Robin Norwood <robin.norwood>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rhughes, richard, robin.norwood
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-06 02:27:51 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 sangu 2008-10-06 02:06:08 UTC
Description of problem:
Click Package collections  -> An internal system error has occurred on Add/Remove Software.

Messages in error dialog 

Error Type: <type 'exceptions.ZeroDivisionError'>
Error Value: integer division or modulo by zero
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2018, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2015, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 582, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 547, in dispatch_command
    self.search_group(options, searchterms)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 389, in search_group
    self._handle_collections(fltlist)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 348, in _handle_collections
    step = int(800/len(collections))

Version-Release number of selected component (if applicable):
0.3.5-1.fc10

How reproducible:
always

Steps to Reproduce:
1. Launch Add/Remove Software
2. Click Package collections
3.
  
Actual results:


Expected results:


Additional info:
PackageKit-yum-0.3.5-4.fc10.i386

Comment 1 sangu 2008-10-06 02:27:51 UTC
After clicking Refresh package lists,  "Package collections" works well.

Not a bug?

Comment 2 Richard Hughes 2008-10-06 08:41:07 UTC
Sure, the bus is we shouldn't show a backtrace when the group list needs refreshing. I've fixed this in:

commit dfbe8255f9332eda3f03f0615aa573577a8b05fe
Author: Richard Hughes <richard>
Date:   Mon Oct 6 09:37:08 2008 +0100

    yum: don't backtrace when we have no groups and we try to search group on co