[Libosinfo] [[PATCH v3] 3/6] os: Add variant info API/XML

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Mon Dec 2 15:10:18 UTC 2013


On Mon, Dec 2, 2013 at 3:03 PM, Zeeshan Ali (Khattak)
<zeeshanak at gnome.org> wrote:
> On Mon, Dec 2, 2013 at 1:22 PM, Daniel P. Berrange <berrange at redhat.com> wrote:
>> On Thu, Nov 28, 2013 at 03:10:21PM +0000, Zeeshan Ali (Khattak) wrote:
>>> Add:
>>>
>>> * ability to specificy various variants of an OS under the 'os' XML node.
>>
>> s/specificy/specify/
>>
>>>   For example:
>>>
>>>   <os id="http://microsoft.com/win/7">
>>>     <short-id>win7</short-id>
>>>     <name>Microsoft Windows 7</name>
>>>     ..
>>>
>>>     <variant id="starter">
>>>       <name>Microsoft Windows 7 Starter</name>
>>>     </variant>
>>>     <variant id="home-basic">
>>>       <name>Microsoft Windows 7 Home Basic</name>
>>>     </variant>
>>>     <variant id="home-premium">
>>>       <name>Microsoft Windows 7 Home Premium</name>
>>>     </variant>
>>>     ..
>>>   </os>
>>>
>>> * API to add and query variants of an OS.
>>> ---
>>>  data/schemas/libosinfo.rng | 13 +++++++++++++
>>>  osinfo/libosinfo.syms      |  3 +++
>>>  osinfo/osinfo_loader.c     | 41 +++++++++++++++++++++++++++++++++++++++++
>>>  osinfo/osinfo_os.c         | 37 +++++++++++++++++++++++++++++++++++++
>>>  osinfo/osinfo_os.h         |  4 ++++
>>>  5 files changed, 98 insertions(+)
>>
>>
>>> diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c
>>> index bb7e9a4..affc49b 100644
>>> --- a/osinfo/osinfo_loader.c
>>> +++ b/osinfo/osinfo_loader.c
>>> @@ -859,6 +859,7 @@ static OsinfoMedia *osinfo_loader_media (OsinfoLoader *loader,
>>>      xmlChar *installer = xmlGetProp(root, BAD_CAST OSINFO_MEDIA_PROP_INSTALLER);
>>>      xmlChar *installer_reboots =
>>>              xmlGetProp(root, BAD_CAST OSINFO_MEDIA_PROP_INSTALLER_REBOOTS);
>>> +    xmlChar *variant = xmlGetProp(root, BAD_CAST OSINFO_MEDIA_PROP_VARIANT);
>>
>> This looks bogus - nothing in this patch uses it - was it supposed to be
>> in a later patch ?
>
> Ouch. Was supposed to be removed during rework of this patch. I'll fix it..

Rebase fsckup! Turns out that removal of that line went into a
following patch. :( Now its all pushed so can't be fixed anymore. :(

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




More information about the Libosinfo mailing list