compiler: Speedup & troubleshooting debug messages (#240)

* compiler: Speedup stripFromRootfs and add debug log

* compiler: on stripFromRootfs show files removed with debug
This commit is contained in:
Daniele Rondina
2021-08-11 10:06:52 +02:00
committed by GitHub
parent 4adc0dc9b9
commit 540e8151ad

View File

@@ -195,11 +195,15 @@ func (cs *LuetCompiler) stripFromRootfs(includes []string, rootfs string, includ
for _, i := range includeRegexp {
if i.MatchString(abspath) {
match = true
break
}
}
if include && !match || !include && match {
toRemove = append(toRemove, currentpath)
Debug(":scissors: Removing file", currentpath)
} else {
Debug(":sun: Matched file", currentpath)
}
return nil