sources: Support openSUSE Leap 42.3
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
parent
f2c6371971
commit
77bd4eee0d
@ -131,15 +131,20 @@ 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))
|
||||||
|
|
||||||
switch arch {
|
if release == "42.3" {
|
||||||
case "x86_64":
|
u.Path = path.Join(u.Path, "containers",
|
||||||
u.Path = path.Join(u.Path, "containers")
|
fmt.Sprintf("openSUSE-Leap-%s-container-image.%s-lxc.tar.xz", release, arch))
|
||||||
case "aarch64", "ppc64le":
|
} else {
|
||||||
u.Path = path.Join(u.Path, "containers_ports")
|
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",
|
u.Path = path.Join(u.Path, fmt.Sprintf("opensuse-leap-image.%s-lxc.tar.xz",
|
||||||
arch))
|
arch))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return u.String()
|
return u.String()
|
||||||
|
Loading…
Reference in New Issue
Block a user