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 PackageName

The name of the package

ver Version

The exact version of the package to query

enable_overrides 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