From 2d64bca5d98a819e7c6db275c902d7af788594b8 Mon Sep 17 00:00:00 2001 From: sid Date: Sun, 18 Aug 2024 18:55:28 +0100 Subject: [PATCH] alpm: Use 'alpm_errno()' rather than incorrect 'errno' for libalpm errors Refer https://github.com/PackageKit/PackageKit/issues/661 --- backends/alpm/pk-alpm-update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/alpm/pk-alpm-update.c b/backends/alpm/pk-alpm-update.c index 3695b3fd3..e898bc965 100644 --- a/backends/alpm/pk-alpm-update.c +++ b/backends/alpm/pk-alpm-update.c @@ -267,7 +267,7 @@ pk_alpm_refresh_databases (PkBackendJob *job, gint force, alpm_list_t *dbs, GErr result = alpm_db_update (priv->alpm, dbs, force); if (result < 0) { g_set_error (error, PK_ALPM_ERROR, alpm_errno (priv->alpm), "failed to update database: %s", - alpm_strerror (errno)); + alpm_strerror (alpm_errno (priv->alpm))); return FALSE; }