@@ -15,25 +15,32 @@ $ ./build_iso_helper 20.04.1 legacy
15
15
$ ./build_iso_helper --unittests
16
16
$ ./build_iso_helper --doctests
17
17
18
- Real results as of December 2020:
18
+ Real results as of February 2022:
19
+
20
+ >>> get_iso_url('20.04.3', subiquity=True)
21
+ 'https://releases.ubuntu.com/20.04/ubuntu-20.04.3-live-server-amd64.iso'
22
+
23
+ >>> get_iso_url('20.04.3', subiquity=False)
24
+ Traceback (most recent call last):
25
+ ValueError: no release found
19
26
20
27
>>> get_iso_url('20.04.1', subiquity=True)
21
- 'https://releases.ubuntu.com/20.04/ubuntu-20.04.1-live-server-amd64.iso'
28
+ 'https://old- releases.ubuntu.com/releases/ 20.04.1 /ubuntu-20.04.1-live-server-amd64.iso'
22
29
23
30
>>> get_iso_url('20.04.1', subiquity=False)
24
- 'https://cdimage.ubuntu.com/ubuntu-legacy-server/releases/20.04.1 /release/ubuntu-20.04.1-legacy-server-amd64.iso'
31
+ 'https://cdimage.ubuntu.com/ubuntu-legacy-server/releases/20.04/release/ubuntu-20.04.1-legacy-server-amd64.iso'
25
32
26
33
>>> get_iso_url('20.04.0', subiquity=True)
27
34
'https://old-releases.ubuntu.com/releases/20.04.0/ubuntu-20.04-live-server-amd64.iso'
28
35
29
36
>>> get_iso_url('16.04.7', subiquity=False)
30
37
'https://releases.ubuntu.com/16.04/ubuntu-16.04.7-server-amd64.iso'
31
38
32
- >>> get_iso_url('18.04.5 ', subiquity=True)
33
- 'https://releases.ubuntu.com/18.04/ubuntu-18.04.5 -live-server-amd64.iso'
39
+ >>> get_iso_url('18.04.6 ', subiquity=True)
40
+ 'https://releases.ubuntu.com/18.04/ubuntu-18.04.6 -live-server-amd64.iso'
34
41
35
- >>> get_iso_url('18.04.5 ', subiquity=False)
36
- 'https://cdimage.ubuntu.com/ubuntu/releases/18.04.5 /release/ubuntu-18.04.5 -server-amd64.iso'
42
+ >>> get_iso_url('18.04.6 ', subiquity=False)
43
+ 'https://cdimage.ubuntu.com/ubuntu/releases/18.04.6 /release/ubuntu-18.04.6 -server-amd64.iso'
37
44
38
45
>>> get_iso_url('18.04.4', subiquity=False)
39
46
'https://old-releases.ubuntu.com/releases/18.04.4/ubuntu-18.04.4-server-amd64.iso'
@@ -115,7 +122,7 @@ def get_iso_url(version, subiquity: bool, arch='amd64'):
115
122
else :
116
123
urlpath = (
117
124
'https://cdimage.ubuntu.com/ubuntu-legacy-server/releases'
118
- f'/{ v .long } /release/'
125
+ f'/{ v .short } /release/'
119
126
)
120
127
isofile = f'ubuntu-{ v .long_if_patch } -legacy-server-{ arch } .iso'
121
128
elif v .major >= 18 :
0 commit comments