Remove update_extension from linux.sh

This commit is contained in:
Shivam Mathur 2020-07-23 02:47:18 +05:30
parent cfbb105cb6
commit a4001afbd6
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
4 changed files with 0 additions and 32 deletions

View File

@ -65,7 +65,6 @@ describe('Extension tests', () => {
'7.4',
'linux'
);
expect(linux).toContain('update_extension xdebug 2.9.6');
expect(linux).toContain(
'add_extension_from_source xdebug xdebug/xdebug master --enable-xdebug zend_extension'
);

8
dist/index.js vendored
View File

@ -3916,14 +3916,6 @@ async function addExtensionLinux(extension_csv, version, pipe) {
extension = 'xdebug';
command = command_prefix + version + '-' + extension + pipe;
break;
// match 7.1xdebug..7.4xdebug
case /^7\.[1-4]xdebug$/.test(version_extension):
add_script +=
'\nupdate_extension xdebug 2.9.6' +
pipe +
'\n' +
(await utils.addLog('$tick', 'xdebug', 'Enabled', 'linux'));
return;
// match pdo extensions
case /.*pdo[_-].*/.test(version_extension):
extension = extension

View File

@ -367,14 +367,6 @@ export async function addExtensionLinux(
extension = 'xdebug';
command = command_prefix + version + '-' + extension + pipe;
break;
// match 7.1xdebug..7.4xdebug
case /^7\.[1-4]xdebug$/.test(version_extension):
add_script +=
'\nupdate_extension xdebug 2.9.6' +
pipe +
'\n' +
(await utils.addLog('$tick', 'xdebug', 'Enabled', 'linux'));
return;
// match pdo extensions
case /.*pdo[_-].*/.test(version_extension):
extension = extension

View File

@ -208,21 +208,6 @@ add_unstable_extension() {
add_pecl_extension "$extension" "$pecl_version" "$prefix"
}
# Function to update extension.
update_extension() {
extension=$1
latest_version=$2
current_version=$(php -r "echo phpversion('$extension');")
final_version=$(printf "%s\n%s" "$current_version" "$latest_version" | sort | tail -n 1)
if [ "$final_version" != "$current_version" ]; then
version_exists=$(apt-cache policy -- *"$extension" | grep "$final_version")
if [ -z "$version_exists" ]; then
update_lists
fi
$apt_install php"$version"-"$extension"
fi
}
# Function to install extension from source
add_extension_from_source() {
extension=$1