Bug 855590

Summary: python-iniparse causes yum to fail to properly parse configuration for yum-plugin-remove-with-leaves
Product: [Fedora] Fedora Reporter: Krzysztof Pawlik <krzysiek.pawlik>
Component: python-iniparseAssignee: Tim Lauridsen <tim.lauridsen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 22:14:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Krzysztof Pawlik 2012-09-09 09:31:30 UTC
Description of problem:
yum-plugin-remove-with-leaves contains a configuration file that starts with 'rem' (remove), parsing of this line is affected by known bug from iniparse which causes it to skip the line. Due to this one can't permanently enable the plugin functionality.

Version-Release number of selected component (if applicable):
python-iniparse-0.4-4.fc17

How reproducible:
Always

Steps to Reproduce:
Run python, run a test case:
>>> import iniparse
>>> import StringIO
>>> parser = iniparse.RawConfigParser()
>>> parser.readfp(StringIO.StringIO('[main]\nok = 1\nremoved = yes\n\n'))
>>> parser.sections()
['main']
>>> parser.items('main')
[('ok', '1')]
>>>
  
Actual results:
Lack of 'removed' in items.

Expected results:
'removed' should appear in items.

Additional info:
The bug has been known at least from February, see http://code.google.com/p/iniparse/issues/detail?id=28, this bug also contains a one line fix to this bug, can we have a revision bump for F17?

Comment 1 Tim Lauridsen 2012-09-10 05:07:49 UTC
 I have add a patch, please test

http://koji.fedoraproject.org/koji/taskinfo?taskID=4470571

Comment 2 Fedora Update System 2012-09-10 08:22:10 UTC
python-iniparse-0.4-6.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-iniparse-0.4-6.fc18

Comment 3 Fedora Update System 2012-09-10 08:22:21 UTC
python-iniparse-0.4-6.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-iniparse-0.4-6.fc17

Comment 4 Fedora Update System 2012-09-10 16:08:50 UTC
Package python-iniparse-0.4-6.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-iniparse-0.4-6.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13718/python-iniparse-0.4-6.fc18
then log in and leave karma (feedback).

Comment 5 Krzysztof Pawlik 2012-09-11 17:20:45 UTC
python-iniparse-0.4-6.fc17 resolves the issue, thanks!

Comment 6 Tim Lauridsen 2012-09-12 04:44:21 UTC
could you please add some karma to the updates

Comment 7 Krzysztof Pawlik 2012-09-12 15:59:54 UTC
(In reply to comment #6)
> could you please add some karma to the updates

Yes, of course -- it's done.

Comment 8 Fedora Update System 2012-09-17 22:14:46 UTC
python-iniparse-0.4-6.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-09-26 09:03:21 UTC
python-iniparse-0.4-6.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.