mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
Remove update_extension from linux.sh
This commit is contained in:
parent
cfbb105cb6
commit
a4001afbd6
@ -65,7 +65,6 @@ describe('Extension tests', () => {
|
|||||||
'7.4',
|
'7.4',
|
||||||
'linux'
|
'linux'
|
||||||
);
|
);
|
||||||
expect(linux).toContain('update_extension xdebug 2.9.6');
|
|
||||||
expect(linux).toContain(
|
expect(linux).toContain(
|
||||||
'add_extension_from_source xdebug xdebug/xdebug master --enable-xdebug zend_extension'
|
'add_extension_from_source xdebug xdebug/xdebug master --enable-xdebug zend_extension'
|
||||||
);
|
);
|
||||||
|
8
dist/index.js
vendored
8
dist/index.js
vendored
@ -3916,14 +3916,6 @@ async function addExtensionLinux(extension_csv, version, pipe) {
|
|||||||
extension = 'xdebug';
|
extension = 'xdebug';
|
||||||
command = command_prefix + version + '-' + extension + pipe;
|
command = command_prefix + version + '-' + extension + pipe;
|
||||||
break;
|
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
|
// match pdo extensions
|
||||||
case /.*pdo[_-].*/.test(version_extension):
|
case /.*pdo[_-].*/.test(version_extension):
|
||||||
extension = extension
|
extension = extension
|
||||||
|
@ -367,14 +367,6 @@ export async function addExtensionLinux(
|
|||||||
extension = 'xdebug';
|
extension = 'xdebug';
|
||||||
command = command_prefix + version + '-' + extension + pipe;
|
command = command_prefix + version + '-' + extension + pipe;
|
||||||
break;
|
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
|
// match pdo extensions
|
||||||
case /.*pdo[_-].*/.test(version_extension):
|
case /.*pdo[_-].*/.test(version_extension):
|
||||||
extension = extension
|
extension = extension
|
||||||
|
@ -208,21 +208,6 @@ add_unstable_extension() {
|
|||||||
add_pecl_extension "$extension" "$pecl_version" "$prefix"
|
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
|
# Function to install extension from source
|
||||||
add_extension_from_source() {
|
add_extension_from_source() {
|
||||||
extension=$1
|
extension=$1
|
||||||
|
Loading…
Reference in New Issue
Block a user