Bug 458803 - yum api change to conditionals breaks livecd-tools
yum api change to conditionals breaks livecd-tools
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
Depends On:
Blocks: F10Blocker/F10FinalBlocker
  Show dependency treegraph
Reported: 2008-08-12 08:28 EDT by Jesse Keating
Modified: 2014-01-21 18:03 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-09-23 18:24:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to work with the yum api change (1.08 KB, application/octet-stream)
2008-08-12 08:46 EDT, Jesse Keating
no flags Details

  None (edit)
Description Jesse Keating 2008-08-12 08:28:44 EDT
Recently yum changed it's API so that the conditionals dict should only have package names in it, rather than package objects.  This breaks livecd-tools somewhere around line 105 of yuminst.py

Traceback (most recent call last):
  File "/usr/lib64/python2.5/pdb.py", line 1213, in main
  File "/usr/lib64/python2.5/pdb.py", line 1138, in _runscript
    self.run(statement, globals=globals_, locals=locals_)
  File "/usr/lib64/python2.5/bdb.py", line 366, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "/usr/bin/livecd-creator", line 132, in <module>
  File "/usr/bin/livecd-creator", line 115, in main
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 638, in install
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 595, in __deselect_packages
  File "/usr/lib/python2.5/site-packages/imgcreate/yuminst.py", line 103, in deselectPackage
    if x in pkgs:
  File "/usr/lib/python2.5/site-packages/yum/packages.py", line 265, in __eq__
    if comparePoEVR(self, other) == 0 and self.arch == other.arch and self.name == other.name:
  File "/usr/lib/python2.5/site-packages/yum/packages.py", line 48, in comparePoEVR
    (e2, v2, r2) = (po2.epoch, po2.version, po2.release)
AttributeError: 'str' object has no attribute 'epoch'
Comment 1 Jesse Keating 2008-08-12 08:46:08 EDT
Created attachment 314092 [details]
Patch to work with the yum api change

Attached a patch to handle the API change.
Comment 2 Jeremy Katz 2008-08-12 09:28:40 EDT
This then breaks compatibility with using old yum.  We need to fix it in yum instead of going through and fixing up every user of the yum API
Comment 3 Jeremy Katz 2008-09-23 18:24:19 EDT
This got fixed in 3.2.19

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