[virt-tools-list] [PATCH libosinfo 07/10] Standardize format for OS id, short-id, distro, version

Daniel P. Berrange berrange at redhat.com
Thu Mar 22 15:45:17 UTC 2012


On Thu, Mar 22, 2012 at 05:31:04PM +0200, Zeeshan Ali (Khattak) wrote:
> On Thu, Mar 22, 2012 at 1:30 PM, Daniel P. Berrange <berrange at redhat.com> wrote:
> > From: "Daniel P. Berrange" <berrange at redhat.com>
> >
> > Standard the format used for creating 'id' and 'short-id' fields,
> > based on distro, version & vendor website URL
> 
> Standard -> Standardize.
> 
> > Also allow for a second short-id, which can be based on the
> > codename {DISTRONAME}{CODENAME}, eg  short-id=ubuntuedgy
> 
> We'll need another getter for that and load this property too.

The XML loader already allows all properties to have multiple
values. You can get all values using

 osinfo_entity_get_param_value_list

The osinfo_product_get_short_id method will simply only get the
first short id value defined.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list