[Libosinfo] [PATCH libosinfo 1/5] tests: Expand the arch's parser for isodetect

Fabiano Fidêncio fidencio at redhat.com
Fri Sep 7 19:18:55 UTC 2018


Some Windows ISOs isodata, as the ones added as part of commit 857f503,
uses X64 and X86 and load_iso() didn't take those into consideration.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 tests/test-isodetect.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test-isodetect.c b/tests/test-isodetect.c
index 415770b..76f0c5a 100644
--- a/tests/test-isodetect.c
+++ b/tests/test-isodetect.c
@@ -106,6 +106,7 @@ static struct ISOInfo *load_iso(GFile *file, const gchar *shortid, const gchar *
     info->langs = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
     if (strstr(name, "amd64") ||
              strstr(name, "x64") ||
+             strstr(name, "X64") ||
              strstr(name, "x86_64") ||
              strstr(name, "64bit") ||
              strstr(name, "64-bit"))
@@ -114,6 +115,7 @@ static struct ISOInfo *load_iso(GFile *file, const gchar *shortid, const gchar *
              strstr(name, "i586") ||
              strstr(name, "i686") ||
              strstr(name, "x86") ||
+             strstr(name, "X86") ||
              strstr(name, "32bit") ||
              strstr(name, "32-bit"))
         arch = "i386";
-- 
2.17.1




More information about the Libosinfo mailing list