Use trim filter on 'php' location
parent
ac3cebc633
commit
59773dd9f6
|
@ -163,9 +163,10 @@ class PearPackageExtractor
|
||||||
private function applyRelease(&$actions, $releaseNodes, $vars)
|
private function applyRelease(&$actions, $releaseNodes, $vars)
|
||||||
{
|
{
|
||||||
foreach ($releaseNodes as $releaseNode) {
|
foreach ($releaseNodes as $releaseNode) {
|
||||||
$requiredOs = (string) ($releaseNode->installconditions && $releaseNode->installconditions->os && $releaseNode->installconditions->os->name) ?: '';
|
$requiredOs = $releaseNode->installconditions && $releaseNode->installconditions->os && $releaseNode->installconditions->os->name ? (string) $releaseNode->installconditions->os->name : '';
|
||||||
if ($requiredOs && $vars['os'] != $requiredOs)
|
if ($requiredOs && $vars['os'] != $requiredOs) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($releaseNode->filelist) {
|
if ($releaseNode->filelist) {
|
||||||
foreach ($releaseNode->filelist->children() as $action) {
|
foreach ($releaseNode->filelist->children() as $action) {
|
||||||
|
|
|
@ -62,7 +62,7 @@ class PearInstaller extends LibraryInstaller
|
||||||
|
|
||||||
$vars = array(
|
$vars = array(
|
||||||
'os' => $isWindows ? 'windows' : 'linux',
|
'os' => $isWindows ? 'windows' : 'linux',
|
||||||
'php_bin' => ($isWindows ? getenv('PHPRC') .'php.exe' : `which php`),
|
'php_bin' => ($isWindows ? getenv('PHPRC') .'php.exe' : trim(`which php`)),
|
||||||
'pear_php' => $this->getInstallPath($package),
|
'pear_php' => $this->getInstallPath($package),
|
||||||
'bin_dir' => $this->getInstallPath($package) . '/bin',
|
'bin_dir' => $this->getInstallPath($package) . '/bin',
|
||||||
'php_dir' => $this->getInstallPath($package),
|
'php_dir' => $this->getInstallPath($package),
|
||||||
|
|
Loading…
Reference in New Issue