Bug 542220

Summary: package-cleanup --problems broken on F12
Product: [Fedora] Fedora Reporter: alexp
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: alexp, james.antill, maxamillion, michal, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-01 15:16:48 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:
Attachments:
Description Flags
my current /var/lib/rpm/Packages file, compressed to .gz none

Description alexp 2009-11-28 22:30:03 UTC
Description of problem:

Running package-cleanup --problems causes Python error

Version-Release number of selected component (if applicable):

1.1.24-2.fc12

How reproducible:

always

Steps to Reproduce:
1. run package-cleanup --problems 
2.
3.
  
Actual results:

Loaded plugins: dellsysidplugin2, presto, refresh-packagekit, refresh-updatesd
Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 382, in <module>
    util = PackageCleanup()
  File "/usr/bin/package-cleanup", line 58, in __init__
    self.main()
  File "/usr/bin/package-cleanup", line 309, in main
    issues = self._find_missing_deps(self.rpmdb.returnPackages())
  File "/usr/bin/package-cleanup", line 137, in _find_missing_deps
    missing = miscutils.formatRequire(req,ver,flags)
  File "/usr/lib/python2.6/site-packages/rpmUtils/miscutils.py", line 350, in formatRequire
    rpm.RPMSENSE_EQUAL):
TypeError: unsupported operand type(s) for &: 'str' and 'int'

Expected results:

A report about problem packages

Additional info:

Comment 1 seth vidal 2009-11-30 20:20:43 UTC
does this happen everytime for you?

Comment 2 alexp 2009-11-30 21:20:07 UTC
Yes, every time. I just upgraded my machine from F11 to F12 2 days ago.

Comment 3 seth vidal 2009-11-30 21:26:19 UTC
since SOMEthing in there is the source of the problem - can you attach your /var/lib/rpm/Packages file so I can sift it out a bit?

Compressing the file would be good.

thanks

Comment 4 alexp 2009-12-01 03:00:47 UTC
Created attachment 374949 [details]
my current /var/lib/rpm/Packages file, compressed to .gz

Comment 5 James Antill 2009-12-01 15:16:48 UTC

*** This bug has been marked as a duplicate of bug 541551 ***