Also patch jessie-updates in sources.list

This commit is contained in:
Alexandre Aubin 2018-05-09 00:25:11 +02:00
parent 6d8dd98498
commit e8f97e7b3e

View file

@ -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)