Reference

Cupt::System::State(3pm)

holds info about installed packages

NAME

Cupt::System::State - holds info about installed packages

METHODS

new

creates new Cupt::System::State object, usually shouldn't be called by hand

Parameters:

config - reference to Cupt::Config

cache - reference to Cupt::Cache

get_status_for_version

method, return undef if the version isn't installed, installed info otherwise (see "get_installed_info")

Parameters:

version - reference to Cupt::Cache::BinaryVersion

get_installed_info

returns installed info of the package

Parameters:

package_name - package name to lookup

Returns:
{
'want' => want,
'flag' => flag,
'status' => status,
'version_string' => version_string,
}

if info is present, undef otherwise

get_installed_version_string

Parameters:

package_name - package name to lookup

Returns:

version string of installed version or undef if no version of the package is installed

export_installed_versions

method, returns array reference of installed versions (for those packages that have configured version in the system)

where:

version - reference to Cupt::Cache::BinaryVersion