Bug 593655 - koan assumes rpm default queryformat
koan assumes rpm default queryformat
Product: Fedora EPEL
Classification: Fedora
Component: koan (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Scott J Henson
Fedora Extras Quality Assurance
Depends On:
  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:
Last Closed: 2010-12-31 01:43:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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):

How reproducible:

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

Actual results:

invalid literal for float(): c
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 215, in main
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 334, in run
   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.