summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2020-02-13 12:42:28 +0200
committerKatja Marttila <katja.marttila@qt.io>2020-02-20 07:37:26 +0000
commit6ce8f28ba643d65ccd628ebf2e90b9d2540668f0 (patch)
treebda09664a7c4d834d09555204ed5a46296a5eeef /src
parent6163fc05768b6a7d05530ef5c33d8f024ebd6b6d (diff)
Add unit tests for CLI option installPackages
Also remove extra space and quotation marks from print output Change-Id: I18eb3532ac79f407023e15ef7ebab78ca0a7f59e Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/libs/installer/packagemanagercore.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/installer/packagemanagercore.cpp b/src/libs/installer/packagemanagercore.cpp
index de3ff4e6b..94bb4cd78 100644
--- a/src/libs/installer/packagemanagercore.cpp
+++ b/src/libs/installer/packagemanagercore.cpp
@@ -2172,22 +2172,22 @@ void PackageManagerCore::installSelectedComponentsSilently(const QStringList& co
if (idx.isValid()) {
if (model->data(idx, Qt::CheckStateRole) == QVariant::Invalid) { // User cannot select the component, check why
if (component && component->autoDependencies().count() > 0)
- qCDebug(QInstaller::lcInstallerInstallLog) << "Cannot install component "<< name
- << "Component is installed only as automatic dependency to "<< component->autoDependencies().join(QLatin1Char(','));
+ qCDebug(QInstaller::lcInstallerInstallLog).noquote().nospace() << "Cannot install component "<< name
+ << ". Component is installed only as automatic dependency to "<< component->autoDependencies().join(QLatin1Char(',')) << ".";
if (component && !component->isCheckable())
- qCDebug(QInstaller::lcInstallerInstallLog) << "Cannot install component "<< name
+ qCDebug(QInstaller::lcInstallerInstallLog).noquote().nospace() << "Cannot install component "<< name
<<". Component is not checkable meaning you have to select one of the subcomponents.";
} else if (component->isInstalled()) {
- qCDebug(QInstaller::lcInstallerInstallLog) << "Component " << name <<" already installed";
+ qCDebug(QInstaller::lcInstallerInstallLog).noquote().nospace() << "Component " << name <<" already installed";
} else {
model->setData(idx, Qt::Checked, Qt::CheckStateRole);
installComponentsFound = true;
}
} else { // idx is invalid and component valid when we have invisible virtual component
if (component && component->isVirtual())
- qCDebug(QInstaller::lcInstallerInstallLog) << "Cannot install " << name <<". Component is virtual.";
+ qCDebug(QInstaller::lcInstallerInstallLog).noquote().nospace() << "Cannot install " << name <<". Component is virtual.";
else
- qCDebug(QInstaller::lcInstallerInstallLog) << "Cannot install " << name <<". Component not found.";
+ qCDebug(QInstaller::lcInstallerInstallLog).noquote().nospace() << "Cannot install " << name <<". Component not found.";
}
}
if (installComponentsFound) {