<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: Baloo, bruns.<br />Herald added projects: Frameworks, Baloo.<br />Herald added a subscriber: kde-frameworks-devel.<br />ngraham requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15844">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently, if you add a folder to Baloo's <tt style="background: #ebebeb; font-size: 13px;">includeFolders</tt> or <tt style="background: #ebebeb; font-size: 13px;">excludeFolders</tt> lists, it cannot be removed again if it has been deleted. This patch fixes that for both <tt style="background: #ebebeb; font-size: 13px;">balooctl</tt> and also the KCM.</p></div></div><br /><div><strong>TEST PLAN</strong><div><div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">mkdir ~/foobar-test
balooctl config add excludeFolders ~/foobar-test
rmdir ~/foobar-test
balooctl config remove excludeFolders ~/foobar-test</pre></div>
<p>Without the patch, <tt style="background: #ebebeb; font-size: 13px;">balooctl</tt> exits with an error, reports "Path does not exist", and does not remove the entry.</p>
<p>With the patch, <tt style="background: #ebebeb; font-size: 13px;">balooctl</tt> exits cleanly with no error and removes the path</p>
<p>Works from the KCM, too.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-removing-locations-from-include-and-exclude-lists (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15844">https://phabricator.kde.org/D15844</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/tools/balooctl/configcommand.cpp</div></div></div><br /><div><strong>To: </strong>ngraham, Baloo, bruns<br /><strong>Cc: </strong>kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>