The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/234

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Remove the special case of openSUSE 42.3 and the `--allow-downgrade`
flag. Since openSUSE 42.3 is EOL, we can drop support for it.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From c91422b24f473847c4130174d699a1310780acd4 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Thu, 5 Sep 2019 16:25:04 +0200
Subject: [PATCH] managers: Add --allow-downgrade to zypper

Remove the special case of openSUSE 42.3 and the `--allow-downgrade`
flag. Since openSUSE 42.3 is EOL, we can drop support for it.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 distrobuilder/chroot.go | 5 -----
 managers/zypper.go      | 1 +
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/distrobuilder/chroot.go b/distrobuilder/chroot.go
index 98af837..f24adfc 100644
--- a/distrobuilder/chroot.go
+++ b/distrobuilder/chroot.go
@@ -69,11 +69,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 def.Manager == "zypper" && release != "42.3" {
-               manager.SetInstallFlags("install", "--allow-downgrade")
-       }
-
        var validSets []shared.DefinitionPackagesSet
 
        for _, set := range def.Sets {
diff --git a/managers/zypper.go b/managers/zypper.go
index 851ae2f..d84759b 100644
--- a/managers/zypper.go
+++ b/managers/zypper.go
@@ -39,6 +39,7 @@ func NewZypper() *Manager {
                        },
                        install: []string{
                                "install",
+                               "--allow-downgrade",
                        },
                        remove: []string{
                                "remove",
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to