Exclude from config perspective, not exe

This commit is contained in:
2025-07-14 18:31:13 +02:00
parent 84f23323fa
commit 509cd7b600

View File

@ -325,9 +325,9 @@ private immutable(Actions) actions()
).any; ).any;
bool[string] to_be_deleted; bool[string] to_be_deleted;
foreach (file; loc.byKey) foreach (pair; loc.byKeyValue)
if ( !exclude(file) ) if ( !exclude(pair.value.file) )
to_be_deleted[file] = true; to_be_deleted[pair.key] = true;
foreach (this_rem; rem.byValue) foreach (this_rem; rem.byValue)
{ {
@ -405,6 +405,7 @@ public void update()
final switch(action.what) final switch(action.what)
{ {
case Action.remove: case Action.remove:
info("Remove %s", action.file);
remove(action.file); remove(action.file);
break; break;
case Action.download: case Action.download: