From 23d0e05b3df635ef70f84acf1abcbe68c6c7fae6 Mon Sep 17 00:00:00 2001 From: Niels Weber Date: Thu, 23 Feb 2012 11:12:17 +0100 Subject: replace multiple space with tabs in debug output Change-Id: I1cb54b7d0988e8d25578ea7b05ff16a7c2f01fb3 Reviewed-by: Karsten Heimrich --- installerbuilder/binarycreator/binarycreator.cpp | 12 ++++++------ installerbuilder/common/repositorygen.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'installerbuilder') diff --git a/installerbuilder/binarycreator/binarycreator.cpp b/installerbuilder/binarycreator/binarycreator.cpp index cdbf0be8b..d49777959 100644 --- a/installerbuilder/binarycreator/binarycreator.cpp +++ b/installerbuilder/binarycreator/binarycreator.cpp @@ -458,7 +458,7 @@ static QString createMetaDataDirectory(const PackageInfoVector &packages, const if (next.contains("/.")) // skip files that are in directories starting with a point continue; - qDebug() << " Found configuration file: " << next; + qDebug() << "\tFound configuration file: " << next; const QFileInfo sourceFileInfo(next); const QString source = sourceFileInfo.absoluteFilePath(); const QFileInfo targetFileInfo(configCopy, QFileInfo(next).fileName()); @@ -480,7 +480,7 @@ static QString createMetaDataDirectory(const PackageInfoVector &packages, const QDomElement doc = dom.documentElement(); QDomElement privateKey = doc.elementsByTagName(QLatin1String("PrivateKey")).item(0).toElement(); if (!privateKey.isNull()) { - qDebug() << " It contains the RSA private key, removing it..."; + qDebug() << "\tIt contains the RSA private key, removing it..."; if (doc.removeChild(privateKey).isNull()) throw Error(QObject::tr("Could not remove the private key from config.xml")); } @@ -523,7 +523,7 @@ static QString createMetaDataDirectory(const PackageInfoVector &packages, const openForWrite(&configXml, configXml.fileName()); QTextStream stream(&configXml); dom.save(stream, 4); - qDebug() << " done."; + qDebug() << "\tdone."; } } return metapath; @@ -700,11 +700,11 @@ int main(int argc, char **argv) .entryInfoList(QDir::NoDotAndDotDot | QDir::Dirs | QDir::Files); foreach (const QFileInfo &archive, archives) { const QSharedPointer arch(new Archive(archive.absoluteFilePath())); - qDebug() << QString::fromLatin1(" Appending %1 (%2 bytes)") + qDebug() << QString::fromLatin1("\tAppending %1 (%2 bytes)") .arg(archive.filePath(), QString::number(arch->size())); comp.appendArchive(arch); if (!privateKey.isEmpty()) { - qDebug() << " Appending a RSA signature..."; + qDebug() << "\tAppending a RSA signature..."; const QByteArray signature = crypto.sign(arch.data()); if (signature.isEmpty()) throw Error(QObject::tr("Could not create a RSA signature")); @@ -713,7 +713,7 @@ int main(int argc, char **argv) throw Error(QObject::tr("Created RSA signature could not be verified. Is " "the given public key wrong?")); } - qDebug() << QString::fromLatin1(" Appending %1.sig (%2 bytes)") + qDebug() << QString::fromLatin1("\tAppending %1.sig (%2 bytes)") .arg(archive.fileName(), signature.size()); const QSharedPointer sigArch(new Archive(arch->name() + ".sig", signature)); comp.appendArchive(sigArch); diff --git a/installerbuilder/common/repositorygen.cpp b/installerbuilder/common/repositorygen.cpp index 1edc5a0a4..1d7c5ee02 100644 --- a/installerbuilder/common/repositorygen.cpp +++ b/installerbuilder/common/repositorygen.cpp @@ -226,10 +226,10 @@ static QVector calculateNeededPackages(const QStringList &component QVector dependencies; if (!info.dependencies.isEmpty()) { - qDebug() << " It depends on:"; + qDebug() << "\tIt depends on:"; for (QStringList::const_iterator dep = info.dependencies.begin(); dep != info.dependencies.end(); ++dep) { - qDebug() << " " << *dep; + qDebug() << "\t\t" << *dep; } dependencies += calculateNeededPackages(info.dependencies, available); } -- cgit v1.2.3