Merge branch '1.7'
commit
15313209d6
|
@ -187,16 +187,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/xdebug-handler",
|
"name": "composer/xdebug-handler",
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/composer/xdebug-handler.git",
|
"url": "https://github.com/composer/xdebug-handler.git",
|
||||||
"reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08"
|
"reference": "e1809da56ce1bd1b547a752936817341ac244d8e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/c919dc6c62e221fc6406f861ea13433c0aa24f08",
|
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/e1809da56ce1bd1b547a752936817341ac244d8e",
|
||||||
"reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08",
|
"reference": "e1809da56ce1bd1b547a752936817341ac244d8e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -227,7 +227,7 @@
|
||||||
"Xdebug",
|
"Xdebug",
|
||||||
"performance"
|
"performance"
|
||||||
],
|
],
|
||||||
"time": "2018-04-11T15:42:36+00:00"
|
"time": "2018-08-16T10:54:23+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "justinrainbow/json-schema",
|
"name": "justinrainbow/json-schema",
|
||||||
|
|
|
@ -345,10 +345,6 @@ EOT
|
||||||
$package = $package->getAliasOf();
|
$package = $package->getAliasOf();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 === strpos($package->getPrettyVersion(), 'dev-') && in_array($package->getSourceType(), array('git', 'hg'))) {
|
|
||||||
$package->setSourceReference(substr($package->getPrettyVersion(), 4));
|
|
||||||
}
|
|
||||||
|
|
||||||
$dm = $this->createDownloadManager($io, $config);
|
$dm = $this->createDownloadManager($io, $config);
|
||||||
$dm->setPreferSource($preferSource)
|
$dm->setPreferSource($preferSource)
|
||||||
->setPreferDist($preferDist)
|
->setPreferDist($preferDist)
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
namespace Composer\Command;
|
namespace Composer\Command;
|
||||||
|
|
||||||
use Composer\Factory;
|
use Composer\Factory;
|
||||||
|
use Composer\Util\Filesystem;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Input\InputArgument;
|
use Symfony\Component\Console\Input\InputArgument;
|
||||||
use Symfony\Component\Console\Input\StringInput;
|
use Symfony\Component\Console\Input\StringInput;
|
||||||
|
@ -75,8 +76,22 @@ EOT
|
||||||
|
|
||||||
// change to global dir
|
// change to global dir
|
||||||
$config = Factory::createConfig();
|
$config = Factory::createConfig();
|
||||||
chdir($config->get('home'));
|
$home = $config->get('home');
|
||||||
$this->getIO()->writeError('<info>Changed current directory to '.$config->get('home').'</info>');
|
|
||||||
|
if (!is_dir($home)) {
|
||||||
|
$fs = new Filesystem();
|
||||||
|
$fs->ensureDirectoryExists($home);
|
||||||
|
if (!is_dir($home)) {
|
||||||
|
throw new \RuntimeException('Could not create home directory');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
chdir($home);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
throw new \RuntimeException('Could not switch to home directory "'.$home.'"', 0, $e);
|
||||||
|
}
|
||||||
|
$this->getIO()->writeError('<info>Changed current directory to '.$home.'</info>');
|
||||||
|
|
||||||
// create new input without "global" command prefix
|
// create new input without "global" command prefix
|
||||||
$input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));
|
$input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));
|
||||||
|
|
Loading…
Reference in New Issue