From 774c7eb24dde6d72d7a9d9e7d6ae248a5a35f480 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 21 Dec 2015 16:58:36 +1000 Subject: Do not warn about missing files in NoExtract The CheckSpace option checks the size of all files in a package being replaced and gives a warning when it can not read the file. However, files in NoExtract are expected to be missing and should not be warned about. Fixes FS#47470. Signed-off-by: Allan McRae --- lib/libalpm/diskspace.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c index 5bb2173c..fdf8690f 100644 --- a/lib/libalpm/diskspace.c +++ b/lib/libalpm/diskspace.c @@ -237,8 +237,10 @@ static int calculate_removed_size(alpm_handle_t *handle, snprintf(path, PATH_MAX, "%s%s", handle->root, filename); if(llstat(path, &st) == -1) { - _alpm_log(handle, ALPM_LOG_WARNING, - _("could not get file information for %s\n"), filename); + if(alpm_option_match_noextract(handle, filename)) { + _alpm_log(handle, ALPM_LOG_WARNING, + _("could not get file information for %s\n"), filename); + } continue; } -- cgit v1.2.3-70-g09d2