bullseye->bookworm: make sure the non-free / non-free-firmware stuff is idempotent

This commit is contained in:
Alexandre Aubin 2024-07-30 16:00:09 +02:00
parent d376677db6
commit ad98a10fa8

View file

@ -411,7 +411,7 @@ class MyMigration(Migration):
"-e '/backports/ s@^#*@#@' " "-e '/backports/ s@^#*@#@' "
"-e 's@ bullseye/updates @ bookworm-security @g' " "-e 's@ bullseye/updates @ bookworm-security @g' "
"-e 's@ bullseye-@ bookworm-@g' " "-e 's@ bullseye-@ bookworm-@g' "
"-e 's@ non-free@ non-free non-free-firmware@g' " "-e '/non-free-firmware/!s@ non-free@ non-free non-free-firmware@g' "
"-e 's@deb.*http://forge.yunohost.org@deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] http://forge.yunohost.org@g' " "-e 's@deb.*http://forge.yunohost.org@deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] http://forge.yunohost.org@g' "
) )
os.system(command) os.system(command)