Fix condition for innstall packages updates during bootstrap

This commit is contained in:
Ciprian Hacman 2020-02-29 09:20:16 +02:00
parent 4d723c6521
commit 86495e9500
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ func (e *Package) findDpkg(c *fi.Context) (*Package, error) {
target := c.Target.(*local.LocalTarget)
updates := target.HasTag(tags.TagUpdatePolicyAuto)
if !updates && !installed {
if updates || !installed {
return nil, nil
}
@ -268,7 +268,7 @@ func (e *Package) findYum(c *fi.Context) (*Package, error) {
target := c.Target.(*local.LocalTarget)
updates := target.HasTag(tags.TagUpdatePolicyAuto)
if !updates && !installed {
if updates || !installed {
return nil, nil
}