mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16688] Fix issues with custom repositories
Make any custom repo non-canonical to give repo.packagist.org (if enabled) higher repository priority in case custom repo contains outdated/incorrect packages/dependencies. PHPBB3-16688
This commit is contained in:
parent
85f23474d7
commit
afe97fb573
2 changed files with 2 additions and 0 deletions
|
@ -591,6 +591,7 @@ class installer
|
|||
$repositories[] = [
|
||||
'type' => 'composer',
|
||||
'url' => $repository,
|
||||
'canonical' => $this->packagist ? false : true,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -254,6 +254,7 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
|
|||
|
||||
$form = $crawler->selectButton('Submit')->form();
|
||||
$form['minimum_stability']->select('dev');
|
||||
$form['repositories'] = 'https://satis.phpbb.com/';
|
||||
$crawler = self::submit($form);
|
||||
$this->assertContainsLang('CONFIG_UPDATED', $crawler->filter('div[class="successbox"] > p')->text());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue