Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1489f57

Browse files
authored
Merge pull request shivammathur#928 from jg-development/main
switch to launchpadcontent shivammathur#927 close
2 parents 3209251 + f25b1cf commit 1489f57

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/scripts/tools/ppa.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ add_key() {
8888
key_source=$4
8989
key_file=$5
9090
key_urls=("$key_source")
91-
if [[ "$key_source" =~ launchpad.net|debian.org ]]; then
91+
if [[ "$key_source" =~ launchpadcontent.net|debian.org ]]; then
9292
fingerprint="$("${ID}"_fingerprint "$ppa" "$ppa_url" "$package_dist")"
9393
sks_params="op=get&options=mr&exact=on&search=0x$fingerprint"
9494
key_urls=("${sks[@]/%/\/pks\/lookup\?"$sks_params"}")
@@ -117,7 +117,7 @@ check_lists() {
117117
# Function to add a sources list.
118118
add_list() {
119119
ppa=${1-ondrej/php}
120-
ppa_url=${2:-"$lp_ppa/$ppa/ubuntu"}
120+
ppa_url=${2:-"$lpc_ppa/$ppa/ubuntu"}
121121
key_source=${3:-"$ppa_url"}
122122
package_dist=${4:-"$VERSION_CODENAME"}
123123
branches=${5:-main}
@@ -139,7 +139,7 @@ add_list() {
139139
# Function to check if a PPA exists
140140
check_ppa() {
141141
ppa=$1
142-
ppa_url=${2:-"$lp_ppa/$ppa/ubuntu"}
142+
ppa_url=${2:-"$lpc_ppa/$ppa/ubuntu"}
143143
package_dist=${3:-"$VERSION_CODENAME"}
144144
branches=${4:-main}
145145
ppa_search="deb .*$ppa_url $package_dist .*$branches$"
@@ -163,7 +163,7 @@ remove_list() {
163163
# Function to check if ubuntu ppa is up
164164
is_ubuntu_ppa_up() {
165165
ppa=${1:-ondrej/php}
166-
curl -s --connect-timeout 5 --max-time 5 --head --fail "$lp_ppa/$ppa/ubuntu/dists/$VERSION_CODENAME/Release" > /dev/null
166+
curl -s --connect-timeout 5 --max-time 5 --head --fail "$lpc_ppa/$ppa/ubuntu/dists/$VERSION_CODENAME/Release" > /dev/null
167167
}
168168

169169
# Function to add the PPA mirror.
@@ -181,7 +181,7 @@ add_ppa() {
181181
ppa=${1:-ondrej/php}
182182
if [[ "$ID" = "ubuntu" || "$ID_LIKE" =~ ubuntu ]] && [[ "$ppa" =~ "ondrej/" ]]; then
183183
if is_ubuntu_ppa_up "$ppa" ; then
184-
[ "${debug:?}" = "debug" ] && add_list "$ppa" "$lp_ppa/$ppa/ubuntu" "$lp_ppa/$ppa/ubuntu" "$VERSION_CODENAME" "main/debug"
184+
[ "${debug:?}" = "debug" ] && add_list "$ppa" "$lpc_ppa/$ppa/ubuntu" "$lpc_ppa/$ppa/ubuntu" "$VERSION_CODENAME" "main/debug"
185185
add_list "$ppa"
186186
else
187187
add_ppa_sp_mirror "$ppa"
@@ -201,7 +201,7 @@ add_ppa() {
201201
update_ppa() {
202202
set_base_version
203203
ppa=${1:-ondrej/php}
204-
ppa_url=${2:-"$lp_ppa/$ppa/ubuntu"}
204+
ppa_url=${2:-"$lpc_ppa/$ppa/ubuntu"}
205205
package_dist=${4:-"$VERSION_CODENAME"}
206206
branches=${5:-main}
207207
ppa_search="deb .*$ppa_url $package_dist .*$branches"

0 commit comments

Comments
 (0)