Summary: | `balooctl clear` always prints "File(s) cleared" and never prints "File not found on filesystem or in DB" | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-baloo | Reporter: | skierpage <info> |
Component: | balooctl | Assignee: | baloo-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tagwerk19 |
Priority: | NOR | ||
Version: | 5.82.0 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=438528 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
skierpage
2021-06-13 00:03:56 UTC
(In reply to skierpage from comment #0) > ... baloosearch --id Every day a learning day! That's rather useful :-) Yes, I see the same behaviour with "balooctl clear...". Can flag as Confirmed... (In reply to skierpage from comment #0) > balooctl clear's logic seems wrong. If you clear a file that has never > existed, it prints "File(s) cleared" and never triggers its code that prints > "File not found on filesystem or in DB" This was fixed after 5.82.0, ignore my faulty analysis. The reporting could still be clearer. What I see on "Unstable" (Frameworks 5.84.0) If the file exists and is indexed or exists but is not indexed, "balooctl clear..." gives: $ balooctl clear file1.txt Clearing /home/test/file1.txt File(s) cleared If the file doesn't exist and is not indexed: $ balooctl clear file2.txt File not found on filesystem or in DB: /home/test/file2.txt File(s) cleared If the file doesn't exist but had been indexed: $ balooctl clear file3.txt File has been deleted, clearing from DB: /home/test/file3.txt File(s) cleared Note to self: Don't assume things haven't been fixed when you weren't looking 8-} You can flag "Resolved" if you wish or leave as is... (In reply to skierpage from comment #2) > ... This was fixed after 5.82.0, ignore my faulty analysis. The reporting could > still be clearer ... I'm a bit slow at closing things.... |