Less warnings at runtime

It's quite common to try loading a package in order to check if it's
valid. No need to litter the console with that.
This commit is contained in:
Sebastian Kügler 2014-05-23 18:41:50 +02:00
parent 511495caad
commit 249c1e1c93

View File

@ -113,7 +113,7 @@ bool Package::isValid() const
}
if (failed) {
qWarning() << "Could not find required" << (it.value().directory ? "directory" : "file") << it.key() << "for package" << path();
//qWarning() << "Could not find required" << (it.value().directory ? "directory" : "file") << it.key() << "for package" << path();
d->valid = false;
break;
}
@ -246,7 +246,7 @@ QString PackagePrivate::unpack(const QString &filePath)
mimeType.inherits("application/x-xz") || mimeType.inherits("application/x-lzma")) {
archive = new KTar(filePath);
} else {
qWarning() << "Could not open package file, unsupported archive format:" << filePath << mimeType.name();
//qWarning() << "Could not open package file, unsupported archive format:" << filePath << mimeType.name();
}
QString tempRoot;
if (archive && archive->open(QIODevice::ReadOnly)) {
@ -270,7 +270,7 @@ QString PackagePrivate::unpack(const QString &filePath)
createPackageMetadata(tempRoot);
} else {
qWarning() << "Could not open package file:" << path;
//qWarning() << "Could not open package file:" << path;
}
delete archive;