Skip to content

Commit 27853eb

Browse files
committed
Cleanup up PPA fallback mirror
1 parent 18b776e commit 27853eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scripts/tools/ppa.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ add_ppa() {
182182
ppa=${1:-ondrej/php}
183183
if [[ "$ID" = "ubuntu" || "$ID_LIKE" =~ ubuntu ]] && [[ "$ppa" =~ "ondrej/" ]]; then
184184
if is_ubuntu_ppa_up "$ppa" ; then
185+
[ "${runner:?}" = "self-hosted" ] && find "$list_dir" -type f -name 'sp*' -exec grep -qF "$sp" {} \; -delete
185186
[ "${debug:?}" = "debug" ] && add_list "$ppa" "$lpc_ppa/$ppa/ubuntu" "$lpc_ppa/$ppa/ubuntu" "$VERSION_CODENAME" "main/debug"
186187
add_list "$ppa"
187188
else

0 commit comments

Comments
 (0)