From 4c694e7270ef22a1d68a589cf11edcf01c8dff7f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 29 Aug 2023 18:57:25 +0000 Subject: [PATCH] pakfire: Call the correct function to check if the host supports this architecture Signed-off-by: Michael Tremer --- src/libpakfire/pakfire.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index 77b383fba..e03f2c1d3 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -852,9 +852,8 @@ PAKFIRE_EXPORT int pakfire_create(struct pakfire** pakfire, const char* path, pakfire_log_set_priority(p, log_priority(env)); } - - // Check if the architecture is supported - if (!pakfire_arch_supported(arch)) { + // Check if the architecture is supported by this host + if (!pakfire_arch_supported_by_host(arch)) { ERROR(p, "Unsupported architecture: %s\n", arch); r = -EINVAL; goto ERROR; -- 2.47.3