search in the new location for knsrc files
ClosedPublic

Authored by mart on May 13 2019, 11:06 AM.

Details

Summary

search in the new knsrc location, still fallback to the old one for
compatibility

Test Plan

tested with files in both locations

Diff Detail

Repository
R252 Framework Integration
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mart created this revision.May 13 2019, 11:06 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 13 2019, 11:06 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
mart requested review of this revision.May 13 2019, 11:06 AM
leinir requested changes to this revision.May 13 2019, 11:42 AM
leinir added a subscriber: leinir.
leinir added inline comments.
src/kpackage-install-handlers/kns/main.cpp
50–58

Since frameworkintegration requires KNewStuff (and Frameworks 5.58), i'd probably suggest using the static function in KNewStuffCore::Engine which gives you this information without having to do manual heuristic type stuff :)

static QStringList Engine::configSearchLocations(bool includeFallbackLocations = false):
https://api.kde.org/frameworks/knewstuff/html/classKNSCore_1_1Engine.html#a030b62a72c0c486939461983e225bb49

122

Did you mean to leave this in?

This revision now requires changes to proceed.May 13 2019, 11:42 AM
mart updated this revision to Diff 57997.May 13 2019, 11:52 AM

use configSearchLocations

leinir accepted this revision.May 13 2019, 11:55 AM

In the words of the interwebs whenever someone days a certain number: nice :)

This revision is now accepted and ready to land.May 13 2019, 11:55 AM
This revision was automatically updated to reflect the committed changes.