Use metadata.json when creating the metadata from KPackage::metadata()
ClosedPublic

Authored by apol on Jul 15 2019, 3:19 PM.

Details

Summary

Otherwise we'd end up using the slow path.

Test Plan

metadata still gets loaded but using the faster path.

Diff Detail

Repository
R290 KPackage
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Jul 15 2019, 3:19 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 15 2019, 3:19 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
apol requested review of this revision.Jul 15 2019, 3:19 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jul 15 2019, 7:38 PM
This revision was automatically updated to reflect the committed changes.

That was less than 5 hours from posting to give up on a review!

We're not in a rush.

src/kpackage/package.cpp
52

that's a whitelist

64

According to the docs

Starting in 4.6, if an entry with the given key already exists, the path is added to it as a search alternative.

so we can also search for metadata.json without changing the key. which will then work for all other code that uses "metadata" as a key.

apol added a comment.Jul 16 2019, 11:51 AM

That was less than 5 hours from posting to give up on a review!

We're not in a rush.

Ugh yeah, I didn't mean to land the patch. >.<