1
0

fix: do not rebuild existing containers w/o files

This commit is contained in:
2024-02-21 18:16:51 +00:00
parent 61b995f330
commit 451566d27f
5 changed files with 27 additions and 15 deletions

View File

@@ -42,9 +42,11 @@ func (u Ubuntu) Packages() (pkgs []string, err error) {
return
}
err = c.Build("ubuntu:"+u.release, u.envs(), u.runs())
if err != nil {
return
if !c.Exist() {
err = c.Build("ubuntu:"+u.release, u.envs(), u.runs())
if err != nil {
return
}
}
cmd := "apt-cache search " +