Commit 7764f351 authored by Christian Kandeler's avatar Christian Kandeler Committed by Tobias Hunger

RemoteLinux: Fix typos in tar packaging step.

Change-Id: Ic598eba24da514d56e5e16c443788bd17a670ba5
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 5f00bafb
......@@ -197,7 +197,7 @@ bool TarPackageCreationStep::appendFile(QFile &tarFile, const QFileInfo &fileInf
emit addOutput(tr("Adding file '%1' to tarball...").arg(nativePath), MessageOutput);
// TODO: Wasteful. Work with fixed-size buffer.
while (!file.atEnd() && !file.error() != QFile::NoError && !tarFile.error() != QFile::NoError) {
while (!file.atEnd() && file.error() == QFile::NoError && tarFile.error() == QFile::NoError) {
const QByteArray data = file.read(chunkSize);
tarFile.write(data);
if (fi.isCanceled())
......
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