Less debug
This commit is contained in:
parent
19c4b555d5
commit
bcbfea3576
@ -204,7 +204,7 @@ void Package::setAllowExternalPaths(bool allow)
|
|||||||
|
|
||||||
KPluginInfo Package::metadata() const
|
KPluginInfo Package::metadata() const
|
||||||
{
|
{
|
||||||
qDebug() << "metadata: " << d->path << filePath("metadata");
|
//qDebug() << "metadata: " << d->path << filePath("metadata");
|
||||||
if (!d->metadata && !d->path.isEmpty()) {
|
if (!d->metadata && !d->path.isEmpty()) {
|
||||||
const QString metadataPath = filePath("metadata");
|
const QString metadataPath = filePath("metadata");
|
||||||
if (!metadataPath.isEmpty()) {
|
if (!metadataPath.isEmpty()) {
|
||||||
@ -280,9 +280,9 @@ QString Package::filePath(const char *fileType, const QString &filename) const
|
|||||||
QStringList paths;
|
QStringList paths;
|
||||||
|
|
||||||
if (qstrlen(fileType) != 0) {
|
if (qstrlen(fileType) != 0) {
|
||||||
qDebug()<<d->contents.keys();
|
//qDebug()<<d->contents.keys();
|
||||||
if (!d->contents.contains(fileType)) {
|
if (!d->contents.contains(fileType)) {
|
||||||
qDebug() << "package does not contain" << fileType << filename;
|
//qDebug() << "package does not contain" << fileType << filename;
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -442,7 +442,7 @@ void Package::setPath(const QString &path)
|
|||||||
paths << p;
|
paths << p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
qDebug() << "paths:" << p << paths << d->defaultPackageRoot;
|
//qDebug() << "paths:" << p << paths << d->defaultPackageRoot;
|
||||||
} else {
|
} else {
|
||||||
const QDir dir(path);
|
const QDir dir(path);
|
||||||
if (QFile::exists(dir.canonicalPath())) {
|
if (QFile::exists(dir.canonicalPath())) {
|
||||||
@ -452,7 +452,7 @@ void Package::setPath(const QString &path)
|
|||||||
QFileInfo fileInfo(path);
|
QFileInfo fileInfo(path);
|
||||||
|
|
||||||
if (fileInfo.isFile() && d->tempRoot.isEmpty()) {
|
if (fileInfo.isFile() && d->tempRoot.isEmpty()) {
|
||||||
qDebug() << "before unzip: path " << path;
|
//qDebug() << "before unzip: path " << path;
|
||||||
d->path = path;
|
d->path = path;
|
||||||
d->tempRoot = d->unpack(path);
|
d->tempRoot = d->unpack(path);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user