Commit 191df5b1 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Fix sysroot copying.

parent c060588b
......@@ -519,9 +519,9 @@ void MaemoDeployStep::installToSysroot()
const QLatin1Char sep('/');
const QString targetFilePath = toolChain()->sysrootRoot() + sep
+ d.remoteDir + sep + QFileInfo(d.localFilePath).fileName();
if (!sysRootDir.mkpath(d.remoteDir.mid(1))
|| !QFile::remove(targetFilePath)
|| !QFile::copy(d.localFilePath, targetFilePath)) {
sysRootDir.mkpath(d.remoteDir.mid(1));
QFile::remove(targetFilePath);
if (!QFile::copy(d.localFilePath, targetFilePath)) {
writeOutput(tr("Sysroot installation failed: "
"Could not copy '%1' to '%2'. Continuing anyway.")
.arg(QDir::toNativeSeparators(d.localFilePath),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment