Skip to content

Commit

Permalink
Merge branch 'Tiger3018-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenithalHourlyRate committed Nov 9, 2022
2 parents fee1959 + 27ece14 commit 00c38c6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 14 deletions.
51 changes: 37 additions & 14 deletions geninfo/genisolist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,37 +66,51 @@ platform = $4
key_by = $2 $4
sort_by = $4 $2

[ubuntu desktop]
[ubuntu_desktop]
distro = Ubuntu
listvers = 4
# If one glob is not enough for locating all images, you can use "location_N"
# to specify more globs. N start from 0 and must a sequence (0,1,2...).
location_0 = ubuntu-releases/[a-z]*/ubuntu-*-desktop-i386.iso
location_1 = ubuntu-releases/[a-z]*/ubuntu-*-desktop-amd64.iso
location = ubuntu-releases/[a-z]*/ubuntu-*-desktop-*.iso
pattern = ubuntu-([0-9.]+)-desktop-(\w+).iso
version = $1
type = Desktop LiveDVD
platform = $2

[ubuntu live server]
[ubuntu_preinstalled_desktop]
distro = Ubuntu
listvers = 4
location = ubuntu-cdimage/releases/[a-z]*/release/ubuntu-*-preinstalled-desktop-*.img.xz
pattern = ubuntu-([0-9.]+)-preinstalled-desktop-(.+).img.xz
version = $1
type = Preinstalled Desktop
platform = $2

[ubuntu_live_server]
distro = Ubuntu
listvers = 4
# If one glob is not enough for locating all images, you can use "location_N"
# to specify more globs. N start from 0 and must a sequence (0,1,2...).
location_0 = ubuntu-releases/[a-z]*/ubuntu-*-live-server-i386.iso
location_1 = ubuntu-releases/[a-z]*/ubuntu-*-live-server-amd64.iso
pattern = ubuntu-([0-9.]+)-live-server-(\w+).iso
location_0 = ubuntu-releases/[a-z]*/ubuntu-*-live-server-*.iso
location_1 = ubuntu-cdimage/releases/[a-z]*/release/ubuntu-*-live-server-*.iso
pattern = ubuntu-([0-9.]+)-live-server-(.+).iso
version = $1
type = Server
platform = $2

[ubuntu server]
[ubuntu_preinstalled_server]
distro = Ubuntu
listvers = 4
# If one glob is not enough for locating all images, you can use "location_N"
# to specify more globs. N start from 0 and must a sequence (0,1,2...).
location_0 = ubuntu-releases/[a-z]*/ubuntu-*-server-i386.iso
location_1 = ubuntu-releases/[a-z]*/ubuntu-*-server-amd64.iso
location = ubuntu-cdimage/releases/[a-z]*/release/ubuntu-*-preinstalled-server-*.img.xz
pattern = ubuntu-([0-9.]+)-preinstalled-server-(.+).img.xz
version = $1
type = Preinstalled Server
platform = $2

# If live and preinstalled server match failed, fallback to default server.
# Currently this rule couldn't match any more file.
[ubuntu_server]
distro = Ubuntu
listvers = 4
location = ubuntu-releases/[a-z]*/ubuntu-*-server-*.iso
pattern = ubuntu-([0-9.]+)-server-(\w+).iso
version = $1
type = Server
Expand Down Expand Up @@ -170,6 +184,15 @@ platform = $2
listvers = 3
type = network installer directory

[ubuntu_core]
distro = Ubuntu Core
location = ubuntu-cdimage/ubuntu-core/*/stable/current/ubuntu-core-*.img.xz
pattern = ubuntu-core-([0-9]+)-(.+).img.xz
version = $1
platform = $2
listvers = 3
type = .img.xz

[debian_cd]
distro = Debian
listvers = 1
Expand Down
8 changes: 8 additions & 0 deletions geninfo/genisolist.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ def getPlatformPriority(platform):
platform = platform.lower()
if platform in ['amd64', 'x86_64', '64bit']:
return 100
elif platform in ['arm64', 'aarch64', 'arm64v8']:
return 95
elif platform in ['riscv64']:
return 95
elif platform in ['loongson2f', 'loongson3']:
return 95
elif platform in ['i386', 'i486', 'i586', 'i686', 'x86', '32bit']:
return 90
elif platform in ['arm32', 'armhf', 'armv7']:
return 85
else:
return 0

Expand Down

0 comments on commit 00c38c6

Please sign in to comment.