summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/remove.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-19 20:18:42 +0200
committerDan McGee <dan@archlinux.org>2011-09-19 20:18:42 +0200
commite1899cbc64c6b634107f09c3a3e8152c63078636 (patch)
treede6bd009664fc863f3f997cf4a78f2d75a9c2e5b /lib/libalpm/remove.h
parenta94ad2974031138dbb4d42a939dfc0cd15a75ce7 (diff)
downloadpacman-e1899cbc64c6b634107f09c3a3e8152c63078636.tar.gz
pacman-e1899cbc64c6b634107f09c3a3e8152c63078636.tar.xz
Be smarter about running ldconfig during removal transactions
1. Don't run it if something failed in package removal- this mirrors what we already do in sync transactions. 2. Don't run it if we are invoking it for the replaces removal bit of a sync transaction- it doesn't make sense to run ldconfig halfway through a sync install; we should only run it once at the end. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/remove.h')
-rw-r--r--lib/libalpm/remove.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/remove.h b/lib/libalpm/remove.h
index 5da645b0..251e4548 100644
--- a/lib/libalpm/remove.h
+++ b/lib/libalpm/remove.h
@@ -25,7 +25,7 @@
#include "trans.h"
int _alpm_remove_prepare(alpm_handle_t *handle, alpm_list_t **data);
-int _alpm_remove_packages(alpm_handle_t *handle);
+int _alpm_remove_packages(alpm_handle_t *handle, int run_ldconfig);
int _alpm_remove_single_package(alpm_handle_t *handle,
alpm_pkg_t *oldpkg, alpm_pkg_t *newpkg,