sources: Fix openSUSE --allow-downgrade flag
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
parent
8b12998aac
commit
791da4d139
@ -52,6 +52,11 @@ func managePackages(def shared.DefinitionPackages, actions []shared.DefinitionAc
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Remove this once openSUSE builds properly without it. OpenSUSE 42.3 doesn't support this flag.
|
||||
if release != "42.3" {
|
||||
manager.SetInstallFlags("install", "--allow-downgrade")
|
||||
}
|
||||
|
||||
for _, set := range def.Sets {
|
||||
if len(set.Releases) > 0 && !lxd.StringInSlice(release, set.Releases) {
|
||||
continue
|
||||
@ -71,11 +76,6 @@ func managePackages(def shared.DefinitionPackages, actions []shared.DefinitionAc
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Remove this once openSUSE builds properly without it. OpenSUSE 42.3 doesn't support this flag.
|
||||
if release != "42.3" {
|
||||
manager.SetInstallFlags("install", "--allow-downgrade")
|
||||
}
|
||||
|
||||
if def.Cleanup {
|
||||
err = manager.Clean()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user