Bug 593655 - koan assumes rpm default queryformat
Summary: koan assumes rpm default queryformat
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: koan
Version: el5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Scott J Henson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-19 12:22 UTC by Christoph Maser
Modified: 2010-12-31 06:43 UTC (History)
4 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2010-12-31 06:43:43 UTC


Attachments (Terms of Use)

Description Christoph Maser 2010-05-19 12:22:33 UTC
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 06:43:43 UTC
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.