Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions switchtoStable
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Patching sources.list to disable testing repository...
----
EOF

if [ -f "/etc/apt/sources.list.d/yunohost.sources" ]; then
sed -i 's|^\s*Components\s*:\s*.*$|Components: stable|' "/etc/apt/sources.list.d/yunohost.sources"
fi

readarray -d '' apt_files < <(find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0)
for FILE in "${apt_files[@]}"; do
# Remove 'testing' and 'unstable' in lines using the yunohost repo
Expand Down
4 changes: 4 additions & 0 deletions switchtoTesting
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Patching sources.list to enable testing repository...
----
EOF

if [ -f "/etc/apt/sources.list.d/yunohost.sources" ]; then
sed -i 's|^\s*Components\s*:\s*.*$|Components: testing|' "/etc/apt/sources.list.d/yunohost.sources"
fi

readarray -d '' apt_files < <(find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0)
for FILE in "${apt_files[@]}"; do
# (Append 'testing' at the end of lines starting with the yunohost repo..)
Expand Down
4 changes: 4 additions & 0 deletions switchtoUnstable
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Patching sources.list to enable unstable repository...
----
EOF

if [ -f "/etc/apt/sources.list.d/yunohost.sources" ]; then
sed -i 's|^\s*Components\s*:\s*.*$|Components: testing unstable|' "/etc/apt/sources.list.d/yunohost.sources"
fi

readarray -d '' apt_files < <(find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0)
for FILE in "${apt_files[@]}"; do
# (Append 'testing' at the end of lines starting with the yunohost repo..)
Expand Down