mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[CI] Format code with Black
This commit is contained in:
parent
ea5bfd1693
commit
158dc7ae14
1 changed files with 13 additions and 9 deletions
|
@ -302,18 +302,22 @@ class MyMigration(Migration):
|
||||||
if " bullseye " not in read_file("/etc/apt/sources.list"):
|
if " bullseye " not in read_file("/etc/apt/sources.list"):
|
||||||
tools_update(target="system")
|
tools_update(target="system")
|
||||||
upgradable_system_packages = list(_list_upgradable_apt_packages())
|
upgradable_system_packages = list(_list_upgradable_apt_packages())
|
||||||
upgradable_system_packages = [package["name"] for package in upgradable_system_packages]
|
upgradable_system_packages = [
|
||||||
|
package["name"] for package in upgradable_system_packages
|
||||||
|
]
|
||||||
upgradable_system_packages = set(upgradable_system_packages)
|
upgradable_system_packages = set(upgradable_system_packages)
|
||||||
# Lime2 have hold packages to avoid ethernet instability
|
# Lime2 have hold packages to avoid ethernet instability
|
||||||
# See https://github.com/YunoHost/arm-images/commit/b4ef8c99554fd1a122a306db7abacc4e2f2942df
|
# See https://github.com/YunoHost/arm-images/commit/b4ef8c99554fd1a122a306db7abacc4e2f2942df
|
||||||
lime2_hold_packages = set([
|
lime2_hold_packages = set(
|
||||||
"armbian-firmware",
|
[
|
||||||
"armbian-bsp-cli-lime2",
|
"armbian-firmware",
|
||||||
"linux-dtb-current-sunxi",
|
"armbian-bsp-cli-lime2",
|
||||||
"linux-image-current-sunxi",
|
"linux-dtb-current-sunxi",
|
||||||
"linux-u-boot-lime2-current",
|
"linux-image-current-sunxi",
|
||||||
"linux-image-next-sunxi"
|
"linux-u-boot-lime2-current",
|
||||||
])
|
"linux-image-next-sunxi",
|
||||||
|
]
|
||||||
|
)
|
||||||
if upgradable_system_packages - lime2_hold_packages:
|
if upgradable_system_packages - lime2_hold_packages:
|
||||||
raise YunohostError("migration_0021_system_not_fully_up_to_date")
|
raise YunohostError("migration_0021_system_not_fully_up_to_date")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue