mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Also patch jessie-updates in sources.list
This commit is contained in:
parent
6d8dd98498
commit
e8f97e7b3e
1 changed files with 2 additions and 1 deletions
|
@ -146,12 +146,13 @@ class MyMigration(Migration):
|
||||||
# This :
|
# This :
|
||||||
# - replace single 'jessie' occurence by 'stretch'
|
# - replace single 'jessie' occurence by 'stretch'
|
||||||
# - comments lines containing "backports"
|
# - comments lines containing "backports"
|
||||||
# - replace 'jessie/updates' by 'strech/updates'
|
# - replace 'jessie/updates' by 'strech/updates' (or same with a -)
|
||||||
# - switch yunohost's repo to forge
|
# - switch yunohost's repo to forge
|
||||||
for f in sources_list:
|
for f in sources_list:
|
||||||
command = "sed -i -e 's@ jessie @ stretch @g' " \
|
command = "sed -i -e 's@ jessie @ stretch @g' " \
|
||||||
"-e '/backports/ s@^#*@#@' " \
|
"-e '/backports/ s@^#*@#@' " \
|
||||||
"-e 's@ jessie/updates @ stretch/updates @g' " \
|
"-e 's@ jessie/updates @ stretch/updates @g' " \
|
||||||
|
"-e 's@ jessie-updates @ stretch-updates @g' " \
|
||||||
"-e 's@repo.yunohost@forge.yunohost@g' " \
|
"-e 's@repo.yunohost@forge.yunohost@g' " \
|
||||||
"{}".format(f)
|
"{}".format(f)
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
Loading…
Add table
Reference in a new issue