opensuse: Fix 42.3 download

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2019-03-11 17:41:04 -04:00
parent fa2214ecd6
commit c611867224
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -131,10 +131,6 @@ func (s *OpenSUSEHTTP) getPathToTarball(baseURL string, release string, arch str
} else { } else {
u.Path = path.Join(u.Path, fmt.Sprintf("openSUSE-Leap-%s", release)) 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 { switch arch {
case "x86_64": case "x86_64":
u.Path = path.Join(u.Path, "containers") u.Path = path.Join(u.Path, "containers")
@ -142,9 +138,7 @@ func (s *OpenSUSEHTTP) getPathToTarball(baseURL string, release string, arch str
u.Path = path.Join(u.Path, "containers_ports") u.Path = path.Join(u.Path, "containers_ports")
} }
u.Path = path.Join(u.Path, fmt.Sprintf("opensuse-leap-image.%s-lxc.tar.xz", u.Path = path.Join(u.Path, fmt.Sprintf("opensuse-leap-image.%s-lxc.tar.xz", arch))
arch))
}
} }
return u.String() return u.String()