2017-01-14 14:44:40 +00:00
|
|
|
Index: kpackage-5.30.0/src/kpackage/packageloader.cpp
|
2016-04-21 16:32:21 +01:00
|
|
|
===================================================================
|
2017-01-14 14:44:40 +00:00
|
|
|
--- kpackage-5.30.0.orig/src/kpackage/packageloader.cpp
|
|
|
|
+++ kpackage-5.30.0/src/kpackage/packageloader.cpp
|
|
|
|
@@ -238,7 +238,7 @@ QList<KPluginMetaData> PackageLoader::li
|
2016-04-21 16:32:21 +01:00
|
|
|
} else {
|
|
|
|
//qDebug() << "Not cached";
|
|
|
|
// If there's no cache file, fall back to listing the directory
|
|
|
|
- const QDirIterator::IteratorFlags flags = QDirIterator::Subdirectories;
|
|
|
|
+ const QDirIterator::IteratorFlags flags = QDirIterator::Subdirectories | QDirIterator::FollowSymlinks;
|
2017-01-14 14:44:40 +00:00
|
|
|
const QStringList nameFilters = { QStringLiteral("metadata.json"), QStringLiteral("metadata.desktop") };
|
2016-04-21 16:32:21 +01:00
|
|
|
|
|
|
|
QDirIterator it(plugindir, nameFilters, QDir::Files, flags);
|
2017-01-14 14:44:40 +00:00
|
|
|
Index: kpackage-5.30.0/src/kpackage/private/packagejobthread.cpp
|
2016-04-21 16:32:21 +01:00
|
|
|
===================================================================
|
2017-01-14 14:44:40 +00:00
|
|
|
--- kpackage-5.30.0.orig/src/kpackage/private/packagejobthread.cpp
|
|
|
|
+++ kpackage-5.30.0/src/kpackage/private/packagejobthread.cpp
|
|
|
|
@@ -121,7 +121,7 @@ bool indexDirectory(const QString& dir,
|
2016-04-21 16:32:21 +01:00
|
|
|
|
|
|
|
QJsonArray plugins;
|
|
|
|
|
|
|
|
- QDirIterator it(dir, *metaDataFiles, QDir::Files, QDirIterator::Subdirectories);
|
|
|
|
+ QDirIterator it(dir, *metaDataFiles, QDir::Files, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
|
|
|
while (it.hasNext()) {
|
|
|
|
it.next();
|
|
|
|
const QString path = it.fileInfo().absoluteFilePath();
|