forked from qt-creator/qt-creator
RemoteLinux: Fix typos in tar packaging step.
Change-Id: Ic598eba24da514d56e5e16c443788bd17a670ba5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
5f00bafb1c
commit
7764f35107
@@ -197,7 +197,7 @@ bool TarPackageCreationStep::appendFile(QFile &tarFile, const QFileInfo &fileInf
|
|||||||
emit addOutput(tr("Adding file '%1' to tarball...").arg(nativePath), MessageOutput);
|
emit addOutput(tr("Adding file '%1' to tarball...").arg(nativePath), MessageOutput);
|
||||||
|
|
||||||
// TODO: Wasteful. Work with fixed-size buffer.
|
// 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);
|
const QByteArray data = file.read(chunkSize);
|
||||||
tarFile.write(data);
|
tarFile.write(data);
|
||||||
if (fi.isCanceled())
|
if (fi.isCanceled())
|
||||||
|
Reference in New Issue
Block a user