From fc63dbefee3b71aa1bcdb80b34bf090f75a99598 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 10 Aug 2018 08:53:21 +0200 Subject: [PATCH] Also remove DCD cache when a libman entry is removed --- src/ce_libman.pas | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ce_libman.pas b/src/ce_libman.pas index 6e63236b..de8be3cf 100644 --- a/src/ce_libman.pas +++ b/src/ce_libman.pas @@ -411,6 +411,7 @@ begin cli.dependencies.Delete(j); end; end; + DCDWrapper.remImportFolder(lib.libSourcePath); fItemsByAlias.delete(lib.libAlias); end; end; @@ -469,7 +470,12 @@ begin begin itm := TLibraryItem(fCollection.Items[i]); if itm.enabled then - add.Add(itm.libSourcePath) + begin + if itm.hasValidLibSourcePath then + add.Add(itm.libSourcePath) + else + rem.Add(itm.libSourcePath); + end else rem.Add(itm.libSourcePath); end;