| Description: |
The list method uses the following to try to trigger a scan of packages:
$sip eval {catch {package require bogus-package}}
This is sufficient to trigger a scan for pkgIndex.tcl based packages, but not for any modules within subdirectories.
It seems the -pattern for pluginmgr only works effectively when specified as the last element in a path such as ::project::packages::*
(not documented as so - but the regexp capture makes it seem that's the intention e.g using -pattern proj* would return something truncated like "ect")
Given that behaviour - using the pattern to create a bogus package require of the right depth might be a better way to update the package database so that list will match the right patterns from 'package names'.
set bogus [string map {* bogus-package} $pattern]
$sip eval [list catch [list package require $bogus]]
|