Add some docs
parent
82ecf95a3c
commit
1f97ffdcd7
|
@ -1322,10 +1322,13 @@ class Installer
|
||||||
$matchesByPattern = array();
|
$matchesByPattern = array();
|
||||||
// check if the name is a glob pattern that did not match directly
|
// check if the name is a glob pattern that did not match directly
|
||||||
if (empty($depPackages)) {
|
if (empty($depPackages)) {
|
||||||
|
// add any installed package matching the whitelisted name/pattern
|
||||||
$whitelistPatternSearchRegexp = BasePackage::packageNameToRegexp($packageName, '^%s$');
|
$whitelistPatternSearchRegexp = BasePackage::packageNameToRegexp($packageName, '^%s$');
|
||||||
foreach ($localOrLockRepo->search($whitelistPatternSearchRegexp) as $installedPackage) {
|
foreach ($localOrLockRepo->search($whitelistPatternSearchRegexp) as $installedPackage) {
|
||||||
$matchesByPattern[] = $pool->whatProvides($installedPackage['name']);
|
$matchesByPattern[] = $pool->whatProvides($installedPackage['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add root requirements which match the whitelisted name/pattern
|
||||||
$whitelistPatternRegexp = BasePackage::packageNameToRegexp($packageName);
|
$whitelistPatternRegexp = BasePackage::packageNameToRegexp($packageName);
|
||||||
foreach ($rootRequiredPackageNames as $rootRequiredPackageName) {
|
foreach ($rootRequiredPackageNames as $rootRequiredPackageName) {
|
||||||
if (preg_match($whitelistPatternRegexp, $rootRequiredPackageName)) {
|
if (preg_match($whitelistPatternRegexp, $rootRequiredPackageName)) {
|
||||||
|
|
Loading…
Reference in New Issue