mirror of
https://github.com/mudler/luet.git
synced 2025-09-05 09:10:43 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user