Package comodit_client :: Package api :: Module compliance :: Class PackageState

Class PackageState


State of a package.

Instance Methods
 
show(self, indent=0)
Prints a user-friendly representation of this state to standard output.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
bool installed
Tells whether the package is installed on the system or not.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints a user-friendly representation of this state to standard output.

Parameters:
  • indent (int) - The number of spaces that will be put at the beginning of each printed line.

Property Details

installed

Tells whether the package is installed on the system or not.

Get Method:
unreachable.installed(self) - Tells whether the package is installed on the system or not.
Type:
bool