mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11150] Always display an error message
PHPBB3-11150
This commit is contained in:
parent
f6eb17048a
commit
fad379813f
2 changed files with 8 additions and 8 deletions
|
@ -99,7 +99,7 @@ class installer
|
||||||
|
|
||||||
$this->root_path = $root_path;
|
$this->root_path = $root_path;
|
||||||
|
|
||||||
putenv('COMPOSER_HOME=' . $filesystem->realpath($root_path) . 'store/composer');
|
putenv('COMPOSER_HOME=' . $filesystem->realpath($root_path) . '/store/composer');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -121,9 +121,14 @@ trait translate_composer_trait
|
||||||
|
|
||||||
$message = trim($this->strip_format($lang_key), "\n\r");
|
$message = trim($this->strip_format($lang_key), "\n\r");
|
||||||
|
|
||||||
if ($this->output->getVerbosity() === OutputInterface::VERBOSITY_DEBUG)
|
if ($message === 'Your requirements could not be resolved to an installable set of packages.')
|
||||||
{
|
{
|
||||||
// Do nothing
|
$this->composer_error[] = ['COMPOSER_ERROR_CONFLICT', []];
|
||||||
|
|
||||||
|
if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_DEBUG)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (strpos($message, ' Problem ') === 0)
|
else if (strpos($message, ' Problem ') === 0)
|
||||||
{
|
{
|
||||||
|
@ -145,11 +150,6 @@ trait translate_composer_trait
|
||||||
$lang_key = 'COMPOSER_LOADING_REPOSITORIES';
|
$lang_key = 'COMPOSER_LOADING_REPOSITORIES';
|
||||||
$level = 1;
|
$level = 1;
|
||||||
}
|
}
|
||||||
else if ($message === 'Your requirements could not be resolved to an installable set of packages.')
|
|
||||||
{
|
|
||||||
$this->composer_error[] = ['COMPOSER_ERROR_CONFLICT', []];
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else if (strpos($message, 'could not be fully loaded, package information was loaded from the local cache and may be out of date') !== false)
|
else if (strpos($message, 'could not be fully loaded, package information was loaded from the local cache and may be out of date') !== false)
|
||||||
{
|
{
|
||||||
$end_repo = strpos($message, 'could not be fully loaded, package information was loaded from the local cache and may be out of date');
|
$end_repo = strpos($message, 'could not be fully loaded, package information was loaded from the local cache and may be out of date');
|
||||||
|
|
Loading…
Add table
Reference in a new issue