[balooctl] Fix "index" command with already indexed, but moved file
Summary:
If I move a file (while baloo was not running) and perform balooctl index on new file
(so that document Id is not changed), it won't update the path of the file, keeping the
invalid entry in index.
Explicitly tell Baloo that we want to update everything concerning this file.
BUG: 397242
FIXED-IN: 5.52
Test Plan:
- echo "hello world" >~/file1
- balooctl stop
- mv ~/file1 ~/file2
- balooctl start && balooctl index ~/file2
- balooshow file2 and balooshow -x <DOCUMENT_ID_OF_FILE>
The first command should show the right path, and the second command shouldn't complain about bug in Baloo (invalid index entry)
Reviewers: Baloo, Frameworks, ngraham
Reviewed By: Baloo, ngraham
Subscribers: ngraham, kde-frameworks-devel
Tags: Frameworks, Baloo
Differential Revision: https://phabricator.kde.org/D15944