summaryrefslogtreecommitdiffstats
path: root/src/sdk
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@digia.com>2013-04-18 17:54:09 +0200
committerTim Jenssen <tim.jenssen@digia.com>2013-04-19 12:45:48 +0200
commitbbd2cab7c4097a0776c28a5e1d4cc2f8b66b53c1 (patch)
tree57d4ea39a75e42aeb6bd9c0079ce45b565243420 /src/sdk
parentf62a9c18206c0d256120b68b9eb3022e0ca79d23 (diff)
fix error handling in 7z lib
- remove an already existing symlink at extraction, because it uses QFile to get the io device and that would be the symlink target which was wrong. - try to get better 7z error output - an error would be now: "There was a problem while performing the operation: Error while extracting 'C:\Qt\qtcreator-2.7.0_test.7z': Cannot open file: D:/test/qtcreator-2.7.0_test/bin/sqldrivers/qsqlite4.dll (Access is denied.)" - move setPermissions to the end so read only files are getting the right timestamp Change-Id: I8881144660296618d443568e6974bf2721328991 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/sdk')
-rw-r--r--src/sdk/installerbase_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sdk/installerbase_p.cpp b/src/sdk/installerbase_p.cpp
index dc4d82d10..0d59e541e 100644
--- a/src/sdk/installerbase_p.cpp
+++ b/src/sdk/installerbase_p.cpp
@@ -260,11 +260,11 @@ int InstallerBase::replaceMaintenanceToolBinary(QStringList arguments)
try {
Lib7z::extractArchive(&archive, QDir::tempPath());
if (!archive.remove()) {
- qDebug() << QString::fromLatin1("Could not delete file %1: %2.").arg(
+ qDebug() << QString::fromLatin1("Could not delete file %1: %2").arg(
target, archive.errorString());
}
} catch (const Lib7z::SevenZipException& e) {
- qDebug() << QString::fromLatin1("Error while extracting %1: %2.").arg(target, e.message());
+ qDebug() << QString::fromLatin1("Error while extracting '%1': %2").arg(target, e.message());
return EXIT_FAILURE;
} catch (...) {
qDebug() << QString::fromLatin1("Unknown exception caught while extracting %1.").arg(target);