Re: [PATCH 3/4] install script: add install_script_avatar entity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 26, 2012 at 11:50 AM, Fabiano Fidêncio <fabiano@xxxxxxxxxxxx> wrote:
> Add a new entity called OsinfoInstallScriptAvatar to help the creation
> of an Avatar file for an install script. If avatar entity needs to be
> set, just add, in the .xml's script file:
> <avatar>
>     <image-type>...</image-type>
>     <extension>...</extension>
>     <alpha>...</alpha>
>     <width>...</width>
>     <height>...</height>
> </avatar>

I don't quit follow one major thing here: What is the direction of the
OsinfoInstallScriptAvatar? Is app setting it on libosinfo or app
getting it from libosinfo? How would a typical usage look like?

> ---
>  data/install-scripts/fedora.xml       |   7 +
>  data/install-scripts/windows-sif.xml  |   7 +
>  data/schemas/libosinfo.rng            |  25 ++-
>  docs/reference/Libosinfo.types        |   1 +
>  osinfo/Makefile.am                    |   2 +
>  osinfo/libosinfo.syms                 |   7 +
>  osinfo/osinfo.h                       |   1 +
>  osinfo/osinfo_install_script.c        |  13 ++
>  osinfo/osinfo_install_script.h        |   5 +
>  osinfo/osinfo_install_script_avatar.c | 352 ++++++++++++++++++++++++++++++++++
>  osinfo/osinfo_install_script_avatar.h |  84 ++++++++
>  osinfo/osinfo_loader.c                |  61 ++++++
>  12 files changed, 564 insertions(+), 1 deletion(-)
>  create mode 100644 osinfo/osinfo_install_script_avatar.c
>  create mode 100644 osinfo/osinfo_install_script_avatar.h
>
> diff --git a/data/install-scripts/fedora.xml b/data/install-scripts/fedora.xml
> index eef4f4a..f7ee68c 100644
> --- a/data/install-scripts/fedora.xml
> +++ b/data/install-scripts/fedora.xml
> @@ -113,6 +113,13 @@ reboot
>          <param name="user-password" policy="required"/>
>          <param name="admin-password" policy="required"/>
>      </config>
> +    <avatar>
> +        <image-type>png</image-type>
> +        <extension>.png</extension>
> +        <alpha>true</alpha>
> +        <width>-1</width>
> +        <height>-1</height>

These XML elements should be simply omitted when there is no value for them.

> +    </avatar>
>      <template filename="fedora.ks">
>        <xsl:stylesheet
>          xmlns:xsl="http://www.w3.org/1999/XSL/Transform";



-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux