[Libosinfo] [PATCH libosinfo] test-isodetect: fix parsing of application, system and publisher id

Christophe Fergeau cfergeau at redhat.com
Wed Jul 12 07:33:15 UTC 2017


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

On Tue, Jul 11, 2017 at 10:00:26PM +0200, Guido Günther wrote:
> ---
>  tests/test-isodetect.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/test-isodetect.c b/tests/test-isodetect.c
> index 0e9aea5..c72b8fc 100644
> --- a/tests/test-isodetect.c
> +++ b/tests/test-isodetect.c
> @@ -146,13 +146,13 @@ static struct ISOInfo *load_iso(GFile *file, const gchar *shortid, const gchar *
>              value = line + strlen("Volume id: ");
>          } else if (g_str_has_prefix(line, "Publisher id: ")) {
>              key = OSINFO_MEDIA_PROP_PUBLISHER_ID;
> -            value = line + strlen("Volume id: ");
> +            value = line + strlen("Publisher id: ");
>          } else if (g_str_has_prefix(line, "System id: ")) {
>              key = OSINFO_MEDIA_PROP_SYSTEM_ID;
> -            value = line + strlen("Volume id: ");
> +            value = line + strlen("System id: ");
>          } else if (g_str_has_prefix(line, "Application id: ")) {
>              key = OSINFO_MEDIA_PROP_APPLICATION_ID;
> -            value = line + strlen("Volume id: ");
> +            value = line + strlen("Application id: ");
>          } else if (g_str_has_prefix(line, "Logical block size is: ")) {
>              blk_size = (gint64) atoll(line + strlen("Logical block size is: "));
>          } else if (g_str_has_prefix(line, "Volume size is: ")) {
> -- 
> 2.13.2
> 
> _______________________________________________
> 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: 801 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20170712/f1f8ccc7/attachment.sig>


More information about the Libosinfo mailing list