From 2e63d6aa7fcdfd89f02758f02f5799a291405b40 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 22 Jan 2015 00:29:53 -0500 Subject: make pm_errno thread-local Signed-off-by: Andrew Gregory --- lib/libalpm/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/remove.c') diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index ffe92518..36136949 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -763,7 +763,7 @@ int _alpm_remove_packages(alpm_handle_t *handle, int run_ldconfig) if(_alpm_remove_single_package(handle, pkg, NULL, targ_count, pkg_count) == -1) { - handle->pm_errno = ALPM_ERR_TRANS_ABORT; + _alpm_set_errno(handle, ALPM_ERR_TRANS_ABORT); /* running ldconfig at this point could possibly screw system */ run_ldconfig = 0; ret = -1; -- cgit v1.2.3-24-g4f1b