~blue-shell/blue-shell/baloo

Viewing all changes in revision 1454.

  • Committer: Stefan Brüns
  • Date: 2019-02-11 22:53:16 UTC
  • Revision ID: git-v1:24223306d59c34734c979627514f39d506d17869
[balooctl] Normalize include/exclude pathes before using it for the config

Summary:
A directory can be added multiple times to the config by just adding a
trailing slash to it, as the config removes any trailing slashes before
storing it, and the `contains(path)` will not match.

Normalize the path to the same format as used by the config and use it
for both adding and removing it.

While using it for removal is not necessary, it allows to use both
variants and matches the "add" behavior, where both variants have the
same effect.

Reviewers: #baloo, #frameworks, poboiko, ngraham

Reviewed By: #baloo, ngraham

Subscribers: kde-frameworks-devel

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D18829

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: