compiler: Avoid generation of delta if there are only prelude steps (#232)

This commit is contained in:
Daniele Rondina 2021-07-09 12:23:32 +02:00 committed by GitHub
parent 654b5b48cd
commit b6b91cfd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,7 @@ func (cs *LuetCompilationSpec) SetSeedImage(s string) {
} }
func (cs *LuetCompilationSpec) EmptyPackage() bool { func (cs *LuetCompilationSpec) EmptyPackage() bool {
return len(cs.BuildSteps()) == 0 && len(cs.GetPreBuildSteps()) == 0 && !cs.UnpackedPackage() return len(cs.BuildSteps()) == 0 && !cs.UnpackedPackage()
} }
func (cs *LuetCompilationSpec) UnpackedPackage() bool { func (cs *LuetCompilationSpec) UnpackedPackage() bool {