PackageManager.getPackage

Looks up a specific package.

Looks up a package matching the given version/path in the set of registered packages. The lookup order is done according the the usual rules (see getPackageIterator).

Parameters

name
Type: string

The name of the package

ver
Type: Version

The exact version of the package to query

enable_overrides
Type: bool

Apply the local package override list before returning a package (enabled by default)

Return Value

Type: Package

The matching package or null if no match was found.

Meta