summaryrefslogtreecommitdiff
path: root/build/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/files.c')
-rw-r--r--build/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/files.c b/build/files.c
index d9c81511e..dd7ba6108 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1375,7 +1375,7 @@ static rpmRC addFile(FileList fl, const char * diskPath,
statp->st_atime = now;
statp->st_mtime = now;
statp->st_ctime = now;
- } else if (lstat(diskPath, statp)) {
+ } else if (!(fl->currentFlags & RPMFILE_GHOST) && lstat(diskPath, statp)) {
rpmlog(RPMLOG_ERR, _("File not found: %s\n"), diskPath);
fl->processingFailed = 1;
return RPMRC_FAIL;