[Libosinfo] [libosinfo PATCH 1/3] os: Fix typo in _find_install_script()

Christophe Fergeau cfergeau at redhat.com
Mon Dec 10 12:29:13 UTC 2018


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Fri, Nov 23, 2018 at 01:49:53PM +0100, Fabiano Fidêncio wrote:
> osinfo_find_install_script() doesn't work as expected due to a typo when
> getting the elements of the script list as an OsinfoList must be passed
> instead of an OsinfoOs.
> 
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
> ---
>  osinfo/osinfo_os.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/osinfo/osinfo_os.c b/osinfo/osinfo_os.c
> index 303fe73..9328820 100644
> --- a/osinfo/osinfo_os.c
> +++ b/osinfo/osinfo_os.c
> @@ -963,7 +963,7 @@ void osinfo_os_add_maximum_resources(OsinfoOs *os,
>  OsinfoInstallScript *osinfo_os_find_install_script(OsinfoOs *os, const gchar *profile)
>  {
>      g_return_val_if_fail(OSINFO_IS_OS(os), NULL);
> -    GList *scripts = osinfo_list_get_elements(OSINFO_LIST(os));
> +    GList *scripts = osinfo_list_get_elements(OSINFO_LIST(os->priv->scripts));
>      GList *tmp = scripts;
>      OsinfoInstallScript *script = NULL;
>  
> -- 
> 2.19.1
> 
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20181210/7d193a7d/attachment.sig>


More information about the Libosinfo mailing list