From fa2214ecd610b8b16307113724244301e701436f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Wed, 6 Mar 2019 16:21:02 -0500 Subject: [PATCH] Restrict allow-downgrade hack to OpenSUSE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- distrobuilder/chroot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrobuilder/chroot.go b/distrobuilder/chroot.go index 61d502e..2485da8 100644 --- a/distrobuilder/chroot.go +++ b/distrobuilder/chroot.go @@ -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") }