mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix patch of security repo in sources.list
This commit is contained in:
parent
fd3a10489d
commit
43d924252f
1 changed files with 3 additions and 1 deletions
|
@ -177,12 +177,14 @@ class MyMigration(Migration):
|
||||||
# - replace single 'buster' occurence by 'bulleye'
|
# - replace single 'buster' occurence by 'bulleye'
|
||||||
# - comments lines containing "backports"
|
# - comments lines containing "backports"
|
||||||
# - replace 'buster/updates' by 'bullseye/updates' (or same with -)
|
# - replace 'buster/updates' by 'bullseye/updates' (or same with -)
|
||||||
|
# Special note about the security suite:
|
||||||
|
# https://www.debian.org/releases/bullseye/amd64/release-notes/ch-information.en.html#security-archive
|
||||||
for f in sources_list:
|
for f in sources_list:
|
||||||
command = (
|
command = (
|
||||||
f"sed -i {f} "
|
f"sed -i {f} "
|
||||||
"-e 's@ buster @ bullseye @g' "
|
"-e 's@ buster @ bullseye @g' "
|
||||||
"-e '/backports/ s@^#*@#@' "
|
"-e '/backports/ s@^#*@#@' "
|
||||||
"-e 's@ buster/updates @ bullseye/updates @g' "
|
"-e 's@ buster/updates @ bullseye-security @g' "
|
||||||
"-e 's@ buster-@ bullseye-@g' "
|
"-e 's@ buster-@ bullseye-@g' "
|
||||||
)
|
)
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
Loading…
Add table
Reference in a new issue