[Libosinfo] [libosinfo PATCH] media: Make _supports_installer_sript() aware of media installers

Christophe Fergeau cfergeau at redhat.com
Mon Feb 11 17:47:11 UTC 2019


I'd add a call to osinfo_media_supports_installer_script to
test_loaded_installer_script

Apart from this,
Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Thu, Feb 07, 2019 at 08:39:17AM +0100, Fabiano Fidêncio wrote:
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
> ---
> This has been written atop of
> https://www.redhat.com/archives/libosinfo/2019-February/msg00028.html
> ---
>  osinfo/osinfo_media.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/osinfo/osinfo_media.c b/osinfo/osinfo_media.c
> index 6720736..9f77504 100644
> --- a/osinfo/osinfo_media.c
> +++ b/osinfo/osinfo_media.c
> @@ -1661,7 +1661,8 @@ gboolean osinfo_media_supports_installer_script(OsinfoMedia *media)
>      os = osinfo_media_get_os(media);
>      list = osinfo_os_get_install_script_list(os);
>  
> -    if (osinfo_list_get_length(OSINFO_LIST(list)) == 0) {
> +    if (osinfo_list_get_length(OSINFO_LIST(list)) == 0 &&
> +        osinfo_list_get_length(OSINFO_LIST(media->priv->scripts)) == 0) {
>          ret = FALSE;
>          goto cleanup;
>      }
> -- 
> 2.20.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/20190211/7094f24d/attachment.sig>


More information about the Libosinfo mailing list