[Libosinfo] [PATCH libosinfo] test-isodetect: add Debian's arm flavours

Guido Günther agx at sigxcpu.org
Tue Jul 11 19:58:26 UTC 2017


to avoid "Unknown arch" debug messges
---
 tests/test-isodetect.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/test-isodetect.c b/tests/test-isodetect.c
index c72b8fc..6a38963 100644
--- a/tests/test-isodetect.c
+++ b/tests/test-isodetect.c
@@ -128,8 +128,12 @@ static struct ISOInfo *load_iso(GFile *file, const gchar *shortid, const gchar *
         arch = "ia64";
     else if (strstr(name, "s390x"))
         arch = "s390x";
-    else if (strstr(name, "aarch64"))
+    else if (strstr(name, "aarch64") ||
+             strstr(name, "arm64"))
         arch = "aarch64";
+    else if (strstr(name, "armhf") ||
+             strstr(name, "armv7l"))
+        arch = "armhf";
     else {
         g_debug("Unknown arch in %s", name);
         arch = "i386";
-- 
2.13.2




More information about the Libosinfo mailing list