Skip to content

Manage /etc/apt/sources.list.d/yunohost.sources as deb822 for switchto* #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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