]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire: Call the correct function to check if the host supports this architecture
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Aug 2023 18:57:25 +0000 (18:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Aug 2023 18:57:25 +0000 (18:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c

index 77b383fbaf200f6d99f178c2bb453840a33a9f6d..e03f2c1d3113a7997ddc4e3537f4aa6e731436b9 100644 (file)
@@ -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;