From: Michael Tremer Date: Tue, 29 Aug 2023 18:57:25 +0000 (+0000) Subject: pakfire: Call the correct function to check if the host supports this architecture X-Git-Tag: 0.9.29~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c694e7270ef22a1d68a589cf11edcf01c8dff7f;p=pakfire.git pakfire: Call the correct function to check if the host supports this architecture Signed-off-by: Michael Tremer --- 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;