From e8f97e7b3ef2dc0a107d24f4dbff9f27fea4482f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 9 May 2018 00:25:11 +0200 Subject: [PATCH] Also patch jessie-updates in sources.list --- src/yunohost/data_migrations/0003_migrate_to_stretch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/yunohost/data_migrations/0003_migrate_to_stretch.py b/src/yunohost/data_migrations/0003_migrate_to_stretch.py index 5f65dbb89..5a5240507 100644 --- a/src/yunohost/data_migrations/0003_migrate_to_stretch.py +++ b/src/yunohost/data_migrations/0003_migrate_to_stretch.py @@ -146,12 +146,13 @@ class MyMigration(Migration): # This : # - replace single 'jessie' occurence by 'stretch' # - 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 for f in sources_list: command = "sed -i -e 's@ jessie @ stretch @g' " \ "-e '/backports/ s@^#*@#@' " \ "-e 's@ jessie/updates @ stretch/updates @g' " \ + "-e 's@ jessie-updates @ stretch-updates @g' " \ "-e 's@repo.yunohost@forge.yunohost@g' " \ "{}".format(f) os.system(command)