Changeset View
Changeset View
Standalone View
Standalone View
src/core/cache.cpp
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | 114 | for (QStringList::const_iterator fit = files.begin(); fit != files.end(); ++fit) { | |||
---|---|---|---|---|---|
151 | } | 151 | } | ||
152 | 152 | | |||
153 | // The .meta files only contain one entry | 153 | // The .meta files only contain one entry | ||
154 | QDomElement stuff = root.firstChildElement(QStringLiteral("stuff")); | 154 | QDomElement stuff = root.firstChildElement(QStringLiteral("stuff")); | ||
155 | EntryInternal e; | 155 | EntryInternal e; | ||
156 | e.setEntryXML(stuff); | 156 | e.setEntryXML(stuff); | ||
157 | e.setSource(EntryInternal::Cache); | 157 | e.setSource(EntryInternal::Cache); | ||
158 | 158 | | |||
159 | // For any future watchers - this is a legacy area, and while this seems like it would want | ||||
160 | // to be either changed or have autoconfig added in the check, that did not exist during the | ||||
161 | // period the files this function operates on existed, so let's leave that out. | ||||
159 | if (e.payload().startsWith(QLatin1String("http://download.kde.org/khotnewstuff"))) { | 162 | if (e.payload().startsWith(QLatin1String("http://download.kde.org/khotnewstuff"))) { | ||
160 | // This is 99% sure a opendesktop file, make it a real one. | 163 | // This is 99% sure a opendesktop file, make it a real one. | ||
broulik: We use `https` everywhere these days | |||||
Yes, quite, we certainly do. (i'm also wondering if this is really something that wants changing or not, as it's... in a bit that loads KNS2 cache files... from KDE3) leinir: Yes, quite, we certainly do. (i'm also wondering if this is really something that wants… | |||||
Yup, this wants to be left alone... i'll add a little comment to that effect. leinir: Yup, this wants to be left alone... i'll add a little comment to that effect. | |||||
161 | e.setProviderId(QStringLiteral("https://api.opendesktop.org/v1/")); | 164 | e.setProviderId(QStringLiteral("https://api.opendesktop.org/v1/")); | ||
162 | e.setHomepage(QUrl(QString(QLatin1String("http://opendesktop.org/content/show.php?content=") + e.uniqueId()))); | 165 | e.setHomepage(QUrl(QString(QLatin1String("http://opendesktop.org/content/show.php?content=") + e.uniqueId()))); | ||
163 | 166 | | |||
164 | } else if (e.payload().startsWith(QLatin1String("http://edu.kde.org/contrib/kvtml/"))) { | 167 | } else if (e.payload().startsWith(QLatin1String("http://edu.kde.org/contrib/kvtml/"))) { | ||
165 | // kvmtl-1 | 168 | // kvmtl-1 | ||
166 | e.setProviderId(QStringLiteral("http://edu.kde.org/contrib/kvtml/kvtml.xml")); | 169 | e.setProviderId(QStringLiteral("http://edu.kde.org/contrib/kvtml/kvtml.xml")); | ||
167 | } else if (e.payload().startsWith(QLatin1String("http://edu.kde.org/contrib/kvtml2/"))) { | 170 | } else if (e.payload().startsWith(QLatin1String("http://edu.kde.org/contrib/kvtml2/"))) { | ||
168 | // kvmtl-2 | 171 | // kvmtl-2 | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |
We use https everywhere these days