diff options
author | Maurice Kalinowski <maurice.kalinowski@nokia.com> | 2011-07-21 13:17:24 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@nokia.com> | 2011-07-21 13:17:24 +0200 |
commit | ff624a1aac2d1e8559c6fd2721095e42ce267be4 (patch) | |
tree | a9f9db76a4c80e7379b6f5627e05a12ec930fdea | |
parent | 236705be63420c6929eb00c902ad675c020b0e3b (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.cpp | 3 |
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 ) { |