summaryrefslogtreecommitdiffstats
path: root/installerbuilder
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2012-02-09 15:04:23 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2012-02-09 15:07:19 +0100
commit2abe895f3bd6bd000043702b49dd4301f568b096 (patch)
treee0a2002413d85f093bf60c112cf7d61f946f1bb4 /installerbuilder
parent1e484494162aff9baefadbe108cdc92ba12c5a62 (diff)
Silence warning in case the file does not exist.
Special case here was that the file was already removed by the repositories meta info job, since now all files are held inside the generated folder hierarchy. Before all downloaded files where loosely held inside the tmp directory and the archives job had to track them. Change-Id: I8825cc4a7a569d1cf09198cb41834396fc1f1903 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r--installerbuilder/libinstaller/downloadarchivesjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/installerbuilder/libinstaller/downloadarchivesjob.cpp b/installerbuilder/libinstaller/downloadarchivesjob.cpp
index 8cf72d678..172ca1327 100644
--- a/installerbuilder/libinstaller/downloadarchivesjob.cpp
+++ b/installerbuilder/libinstaller/downloadarchivesjob.cpp
@@ -73,7 +73,7 @@ DownloadArchivesJob::~DownloadArchivesJob()
{
foreach (const QString &fileName, m_temporaryFiles) {
QFile file(fileName);
- if (!file.remove())
+ if (file.exists() && !file.remove())
qWarning("Could not delete file %s: %s", qPrintable(fileName), qPrintable(file.errorString()));
}