Restrict allow-downgrade hack to OpenSUSE

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2019-03-06 16:21:02 -05:00
parent 7a8993e1da
commit fa2214ecd6
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -53,7 +53,7 @@ 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" {
if def.Manager == "zypper" && release != "42.3" {
manager.SetInstallFlags("install", "--allow-downgrade")
}