Bug 1014318

Summary: don't write empty optionlist
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: libcompsAssignee: Jindrich Luza <jluza>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, jluza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-08 08:31:00 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 Daniel Mach 2013-10-01 17:26:46 UTC
Input xml contains:
<optionlist>
</optionlist>


After reading and writing the comps file, this changes to:
<optionlist/>

expected result:
In case a section is empty, it should not be part of output.

Comment 1 Jindrich Luza 2013-10-08 08:31:00 UTC
fixed in libcomps-0.1.4-2.fc21