INSTALLS element checking: Add more detail to debug message.

For larger projects, it doesn't make much sense without mentioning
the respective project file.
This commit is contained in:
Christian Kandeler
2010-12-02 16:50:15 +01:00
parent a8d0255205
commit 1cbfa220fc

View File

@@ -2015,8 +2015,8 @@ void Qt4ProFileNode::setupInstallsList(const ProFileReader *reader)
qDebug("Invalid RHS: Variable '%s' has %d values.",
qPrintable(pathVar), itemPaths.count());
if (itemPaths.isEmpty()) {
qDebug("Ignoring INSTALLS item '%s', because it has no path.",
qPrintable(item));
qDebug("%s: Ignoring INSTALLS item '%s', because it has no path.",
qPrintable(m_projectFilePath), qPrintable(item));
continue;
}
}
@@ -2027,14 +2027,15 @@ void Qt4ProFileNode::setupInstallsList(const ProFileReader *reader)
m_projectDir, QStringList() << m_projectDir, 0);
if (item == QLatin1String("target")) {
if (!m_installsList.targetPath.isEmpty())
qDebug("Overwriting existing target.path in INSTALLS list.");
qDebug("%s: Overwriting existing target.path in INSTALLS list.",
qPrintable(m_projectFilePath));
m_installsList.targetPath = itemPath;
} else {
if (itemFiles.isEmpty()) {
if (!reader->values(item + QLatin1String(".CONFIG"))
.contains(QLatin1String("no_check_exist"))) {
qDebug("Ignoring INSTALLS item '%s', because it has no files.",
qPrintable(item));
qDebug("%s: Ignoring INSTALLS item '%s', because it has no files.",
qPrintable(m_projectFilePath), qPrintable(item));
}
continue;
}