summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@nokia.com>2011-07-21 13:17:24 +0200
committerMaurice Kalinowski <maurice.kalinowski@nokia.com>2011-07-21 13:17:24 +0200
commitff624a1aac2d1e8559c6fd2721095e42ce267be4 (patch)
treea9f9db76a4c80e7379b6f5627e05a12ec930fdea
parent236705be63420c6929eb00c902ad675c020b0e3b (diff)
Do not try to remove non existing directories
In case a directory has been removed already, there is no need to bail out with an error. Reviewed-By: Niels Weber
-rw-r--r--installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterupdateoperations.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterupdateoperations.cpp b/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterupdateoperations.cpp
index 769f9a36d..1614cbbe7 100644
--- a/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterupdateoperations.cpp
+++ b/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterupdateoperations.cpp
@@ -484,6 +484,9 @@ bool MkdirOperation::undoOperation()
if( createdDir == QDir::root() )
return true;
+ if( !createdDir.exists())
+ return true;
+
QString errorString;
if( forceremoval )
{