opensuse: Fix 42.3 download
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
fa2214ecd6
commit
c611867224
@ -131,20 +131,14 @@ 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" {
|
switch arch {
|
||||||
u.Path = path.Join(u.Path, "containers",
|
case "x86_64":
|
||||||
fmt.Sprintf("openSUSE-Leap-%s-container-image.%s-lxc.tar.xz", release, arch))
|
u.Path = path.Join(u.Path, "containers")
|
||||||
} else {
|
case "aarch64", "ppc64le":
|
||||||
switch arch {
|
u.Path = path.Join(u.Path, "containers_ports")
|
||||||
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))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u.Path = path.Join(u.Path, fmt.Sprintf("opensuse-leap-image.%s-lxc.tar.xz", arch))
|
||||||
}
|
}
|
||||||
|
|
||||||
return u.String()
|
return u.String()
|
||||||
|
Loading…
Reference in New Issue
Block a user