From 7d05ffceaf9161a6572505d25b5017e1eb33bf0e Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 29 May 2018 13:57:13 +1000 Subject: Remove the last traces of the pacman --force option Signed-off-by: Allan McRae --- lib/libalpm/conflict.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libalpm/conflict.c') diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 716d0088..9385be9e 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -401,8 +401,7 @@ static alpm_pkg_t *_alpm_find_file_owner(alpm_handle_t *handle, const char *path static int _alpm_can_overwrite_file(alpm_handle_t *handle, const char *path, const char *rootedpath) { - return handle->trans->flags & ALPM_TRANS_FLAG_FORCE - || _alpm_fnmatch_patterns(handle->overwrite_files, path) == 0 + return _alpm_fnmatch_patterns(handle->overwrite_files, path) == 0 || _alpm_fnmatch_patterns(handle->overwrite_files, rootedpath) == 0; } -- cgit v1.2.3-54-g00ecf