summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/diskspace.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-12-21 07:58:36 +0100
committerAllan McRae <allan@archlinux.org>2016-01-04 04:27:08 +0100
commit774c7eb24dde6d72d7a9d9e7d6ae248a5a35f480 (patch)
tree81239ed72882951af209bdf39534482291d56bac /lib/libalpm/diskspace.c
parenta671fa497c7317e240e014e93bddfdbf1d270b2b (diff)
downloadpacman-774c7eb24dde6d72d7a9d9e7d6ae248a5a35f480.tar.gz
pacman-774c7eb24dde6d72d7a9d9e7d6ae248a5a35f480.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/diskspace.c')
-rw-r--r--lib/libalpm/diskspace.c6
1 files changed, 4 insertions, 2 deletions
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;
}