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>
This commit is contained in:
parent
a671fa497c
commit
774c7eb24d
1 changed files with 4 additions and 2 deletions
|
@ -237,8 +237,10 @@ static int calculate_removed_size(alpm_handle_t *handle,
|
||||||
snprintf(path, PATH_MAX, "%s%s", handle->root, filename);
|
snprintf(path, PATH_MAX, "%s%s", handle->root, filename);
|
||||||
|
|
||||||
if(llstat(path, &st) == -1) {
|
if(llstat(path, &st) == -1) {
|
||||||
_alpm_log(handle, ALPM_LOG_WARNING,
|
if(alpm_option_match_noextract(handle, filename)) {
|
||||||
_("could not get file information for %s\n"), filename);
|
_alpm_log(handle, ALPM_LOG_WARNING,
|
||||||
|
_("could not get file information for %s\n"), filename);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue