aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/artifactcleaner.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-04-14 15:40:30 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-04-15 14:18:27 +0200
commitfdc392858716c390f1541430dad3bb6aefdf792e (patch)
treedaece0e70b9525ab45718ac9fd2019a215aecc71 /src/lib/corelib/buildgraph/artifactcleaner.cpp
parenta27e8552174475e95cb5ec42612c41e25bcd1364 (diff)
Work around braindead QFileInfo::exists() behavior for symbolic links.
Change-Id: If8002fc7be0cc6af954ebb28ccbcb7bee1031e1c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/corelib/buildgraph/artifactcleaner.cpp')
-rw-r--r--src/lib/corelib/buildgraph/artifactcleaner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/artifactcleaner.cpp b/src/lib/corelib/buildgraph/artifactcleaner.cpp
index 0e41deee7..6995af22b 100644
--- a/src/lib/corelib/buildgraph/artifactcleaner.cpp
+++ b/src/lib/corelib/buildgraph/artifactcleaner.cpp
@@ -71,7 +71,7 @@ static void invalidateArtifactTimestamp(Artifact *artifact)
static void removeArtifactFromDisk(Artifact *artifact, bool dryRun, const Logger &logger)
{
QFileInfo fileInfo(artifact->filePath());
- if (!fileInfo.exists()) {
+ if (!FileInfo::fileExists(fileInfo)) {
if (!dryRun)
invalidateArtifactTimestamp(artifact);
return;