Skip to content

Commit

Permalink
alpm: Use 'alpm_errno()' rather than incorrect 'errno' for libalpm er…
Browse files Browse the repository at this point in the history
…rors

Refer PackageKit#661
  • Loading branch information
sidt4 committed Aug 18, 2024
1 parent f42d198 commit 2d64bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/alpm/pk-alpm-update.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2d64bca

Please sign in to comment.