Bug 541551 - package-cleanup: unsupported operand type(s) for &: 'str' and 'int'
Summary: package-cleanup: unsupported operand type(s) for &: 'str' and 'int'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 539580 542220 558797 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-26 10:06 UTC by Sebastian Vahl
Modified: 2014-01-21 23:12 UTC (History)
8 users (show)

Fixed In Version: 1.1.25-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-01 18:00:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sebastian Vahl 2009-11-26 10:06:12 UTC
Description of problem:
"package-cleanup --problems" fails with this traceback:

Loaded plugins: dellsysidplugin2, fastestmirror, presto, refresh-packagekit, upgrade-helper, versionlock
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'


Version-Release number of selected component (if applicable):
yum-utils-1.1.24-2.fc12.noarch
yum-3.2.25-1.fc12.noarch


How reproducible:
ever

Steps to Reproduce:
1. run 'package-cleanup --problems'
  
Actual results:
traceback

Expected results:
no traceback

Additional info:
"--help", "--dupes" and "--leaves" are working fine.

Comment 1 James Antill 2009-12-01 15:15:31 UTC
This should now be fixed in the upstream commit:

http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=5ef519442e401564d93e8695f42f3014f6712d4c

Comment 2 James Antill 2009-12-01 15:16:48 UTC
*** Bug 542220 has been marked as a duplicate of this bug. ***

Comment 3 Sebastian Vahl 2009-12-03 08:03:58 UTC
(In reply to comment #1)
> This should now be fixed in the upstream commit:
> 
> http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=5ef519442e401564d93e8695f42f3014f6712d4c  

Confirmed. Thanks.

Comment 4 James Antill 2009-12-16 15:45:15 UTC
*** Bug 539580 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2010-01-27 12:13:09 UTC
yum-utils-1.1.25-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yum-utils-1.1.25-1.fc12

Comment 6 Adam Huffman 2010-01-30 11:33:29 UTC
*** Bug 558797 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2010-02-11 14:47:38 UTC
yum-utils-1.1.25-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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