File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ Patching sources.list to disable testing repository...
66----
77EOF
88
9+ if [ -f " /etc/apt/sources.list.d/yunohost.sources" ]; then
10+ sed -i ' s|^\s*Components\s*:\s*.*$|Components: stable|' " /etc/apt/sources.list.d/yunohost.sources"
11+ fi
12+
913readarray -d ' ' apt_files < <( find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0)
1014for FILE in " ${apt_files[@]} " ; do
1115 # Remove 'testing' and 'unstable' in lines using the yunohost repo
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ Patching sources.list to enable testing repository...
66----
77EOF
88
9+ if [ -f " /etc/apt/sources.list.d/yunohost.sources" ]; then
10+ sed -i ' s|^\s*Components\s*:\s*.*$|Components: testing|' " /etc/apt/sources.list.d/yunohost.sources"
11+ fi
12+
913readarray -d ' ' apt_files < <( find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0)
1014for FILE in " ${apt_files[@]} " ; do
1115 # (Append 'testing' at the end of lines starting with the yunohost repo..)
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ Patching sources.list to enable unstable repository...
66----
77EOF
88
9+ if [ -f " /etc/apt/sources.list.d/yunohost.sources" ]; then
10+ sed -i ' s|^\s*Components\s*:\s*.*$|Components: testing unstable|' " /etc/apt/sources.list.d/yunohost.sources"
11+ fi
12+
913readarray -d ' ' apt_files < <( find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0)
1014for FILE in " ${apt_files[@]} " ; do
1115 # (Append 'testing' at the end of lines starting with the yunohost repo..)
You can’t perform that action at this time.
0 commit comments