From fbe527226c40e274d9db88be505879511abdcf34 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Thu, 14 Aug 2025 08:14:11 +0200 Subject: [PATCH] bugfix: DKL-DI-0005 false positive #282 --- pkg/assessor/manifest/manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/assessor/manifest/manifest.go b/pkg/assessor/manifest/manifest.go index 4013735..834d316 100644 --- a/pkg/assessor/manifest/manifest.go +++ b/pkg/assessor/manifest/manifest.go @@ -354,7 +354,7 @@ func reducableAptGetInstall(cmdSlices map[int][]string) bool { useAptLibrary = true } // remove cache must be run after apt library directory changed - if useAptLibrary && containsThreshold(cmdSlice, removeAptLibCmds, 3) { + if useAptLibrary && (containsThreshold(cmdSlice, removeAptLibCmds, 3) || checkAptCommand(cmdSlice, "dist-clean") || checkAptCommand(cmdSlice, "distclean")) { return false } }