apt-cache: rewrite existing sources
continuous-integration/laminar-eldarion Build failed with exit code 123 after 2 seconds Details

This commit is contained in:
Starbeamrainbowlabs 2022-08-06 20:50:45 +01:00
parent f43463b0ed
commit af20c7f029
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ enable_apt_cache() {
subtask_end "$?";
fi
subtask_begin "Reconfiguring existing apt sources https → http";
sed -i 's/https:\/\//http:\/\//g' /etc/apt/sources.list;
find /etc/apt/sources.list.d/ -type f -iname '*.list' -print0 | xargs -0 -n1 sed -i 's/https:\/\//http:\/\//g';
subtask_end "$?";
task_end "$?" "Failed to configure apt cache.";
}