Bug 593655 - koan assumes rpm default queryformat
koan assumes rpm default queryformat
Status: CLOSED CURRENTRELEASE
Product: Fedora EPEL
Classification: Fedora
Component: koan (Show other bugs)
el5
All Linux
low Severity medium
: ---
: ---
Assigned To: Scott J Henson
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-19 08:22 EDT by Christoph Maser
Modified: 2010-12-31 01:43 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-12-31 01:43:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Christoph Maser 2010-05-19 08:22:33 EDT
Description of problem:
koan assumes default rpm queryformat

Version-Release number of selected component (if applicable):
0:2.0.3.1-3.el5.noarch

How reproducible:
always

Steps to Reproduce:
1. globaly modify rpm queryformat
2. run koan --replace-self  


Actual results:

exceptions.ValueError
invalid literal for float(): c
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 215, in main
    k.run()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 334, in run
    self.replace()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 895, in replace
    return self.net_install(after_download)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 571, in net_install
    after_download(self, profile_data)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 804, in after_download
    (make, version, rest) = utils.os_release()
   File "/usr/lib/python2.4/site-packages/koan/utils.py", line 358, in os_release
    version = float(version[0])

Additional info:
FIX: in  /usr/lib/python2.4/site-packages/koan/utils.py", line 358 also use --queryformat
Comment 1 Scott J Henson 2010-12-31 01:43:43 EST
We no longer use that code to determine the os release.  Thus, this should be fixed.  Please try 2.0.9 or above.  Thanks.

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