@@ -195,10 +195,7 @@ AST_NEXT_MAJOR_VER=22
195
195
AST_MAJOR_VER=$AST_DEFAULT_MAJOR_VER
196
196
AST_MM_VER=0
197
197
AST_SOURCE_NAME=" asterisk-${AST_DEFAULT_MAJOR_VER} -current"
198
- # This was meant to be -testing, but ended up being -testing-rc#,
199
- # if this is fixed, this will need to be adjusted accordingly.
200
- AST_RC_SOURCE_NAME=" asterisk-${AST_DEFAULT_MAJOR_VER} -testing-rc1"
201
- AST_RC_SOURCE_NAME2=" asterisk-${AST_DEFAULT_MAJOR_VER} -testing-rc2"
198
+ AST_RC_SOURCE_NAME=" asterisk-${AST_DEFAULT_MAJOR_VER} -testing"
202
199
203
200
# DAHDI_MM_VER="${DAHDI_VERSION:0:1}${DAHDI_VERSION:2:1}" Requires bash
204
201
DAHDI_MM_VER=34
@@ -2418,15 +2415,8 @@ get_source() {
2418
2415
if [ " $AST_ALT_VER " = " " ]; then # download latest bundled version
2419
2416
if [ " $PREFER_RELEASE_CANDIDATES " = " 1" ]; then
2420
2417
# Delete any previous release candidates
2421
- rm -f $AST_RC_SOURCE_NAME .tar.gz $AST_RC_SOURCE_NAME2 .tar.gz # the name itself doesn't guarantee that the version is the same
2418
+ rm -f $AST_RC_SOURCE_NAME .tar.gz # the name itself doesn't guarantee that the version is the same
2422
2419
$WGET https://downloads.asterisk.org/pub/telephony/asterisk/$AST_RC_SOURCE_NAME .tar.gz
2423
- if [ ! -f $AST_RC_SOURCE_NAME .tar.gz ]; then
2424
- # XXX This is a workaround for the -testing tarballs including the rc name (which wasn't the intent)
2425
- # Look for a 2nd RC if there is one.
2426
- # Very rarely there may be a 3rd one, and this is not yet handled here.
2427
- AST_RC_SOURCE_NAME=" $AST_RC_SOURCE_NAME2 "
2428
- $WGET https://downloads.asterisk.org/pub/telephony/asterisk/$AST_RC_SOURCE_NAME .tar.gz
2429
- fi
2430
2420
if [ ! -f $AST_RC_SOURCE_NAME .tar.gz ]; then
2431
2421
printf " No release candidate is currently available, installing latest stable version instead\n"
2432
2422
PREFER_RELEASE_CANDIDATES=0
0 commit comments