From d48087d13da7c6532a9b4f74dc7f63ea0dd6470d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 24 Oct 2011 17:58:53 +0200 Subject: [PATCH] RemoteLinux: Allow skipping default targets in tar packages. Change-Id: I229aa0ec3bfa1a135c9f14e272900995ac834421 Task-number: QTCREATORBUG-6324 Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/tarpackagecreationstep.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/remotelinux/tarpackagecreationstep.cpp b/src/plugins/remotelinux/tarpackagecreationstep.cpp index cb8bf1e11ff..d821e9fe29d 100644 --- a/src/plugins/remotelinux/tarpackagecreationstep.cpp +++ b/src/plugins/remotelinux/tarpackagecreationstep.cpp @@ -160,6 +160,11 @@ bool TarPackageCreationStep::doPackage(QFutureInterface &fi) } foreach (const DeployableFile &d, m_files) { + if (d.remoteDir.isEmpty()) { + emit addOutput(tr("No remote path specified for file '%1', skipping.") + .arg(QDir::toNativeSeparators(d.localFilePath)), ErrorMessageOutput); + continue; + } QFileInfo fileInfo(d.localFilePath); if (!appendFile(tarFile, fileInfo, d.remoteDir + QLatin1Char('/') + fileInfo.fileName(), fi)) {