From c6118672241f95346eaf1e2890ecfb8535ceb96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 11 Mar 2019 17:41:04 -0400 Subject: [PATCH] opensuse: Fix 42.3 download MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- sources/opensuse-http.go | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/sources/opensuse-http.go b/sources/opensuse-http.go index 04096b3..9b493a3 100644 --- a/sources/opensuse-http.go +++ b/sources/opensuse-http.go @@ -131,20 +131,14 @@ func (s *OpenSUSEHTTP) getPathToTarball(baseURL string, release string, arch str } else { u.Path = path.Join(u.Path, fmt.Sprintf("openSUSE-Leap-%s", release)) - if release == "42.3" { - u.Path = path.Join(u.Path, "containers", - fmt.Sprintf("openSUSE-Leap-%s-container-image.%s-lxc.tar.xz", release, arch)) - } else { - switch arch { - case "x86_64": - u.Path = path.Join(u.Path, "containers") - case "aarch64", "ppc64le": - u.Path = path.Join(u.Path, "containers_ports") - } - - u.Path = path.Join(u.Path, fmt.Sprintf("opensuse-leap-image.%s-lxc.tar.xz", - arch)) + switch arch { + case "x86_64": + u.Path = path.Join(u.Path, "containers") + case "aarch64", "ppc64le": + u.Path = path.Join(u.Path, "containers_ports") } + + u.Path = path.Join(u.Path, fmt.Sprintf("opensuse-leap-image.%s-lxc.tar.xz", arch)) } return u.String()