Package entropy :: Package spm :: Package plugins :: Package interfaces :: Package portage_plugin :: Class PortageEntropyDepTranslator

Class PortageEntropyDepTranslator

source code


Conditional dependency string translator from Portage to Entropy.

Example usage: >>> translator = PortageEntropyDepTranslator(portage_string) >>> entropy_string = translator.translate() entropy_string

Nested Classes
  ParseError
Parse error.
Instance Methods
 
__init__(self, portage_dependency)
PortageEntropyDepTranslator constructor.
source code
string
translate(self)
Effectively translate Portage dependency string returning Entropy one.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, portage_dependency)
(Constructor)

source code 

PortageEntropyDepTranslator constructor.

Parameters:
  • portage_dependency (string) - Portage dependency string
Overrides: object.__init__

translate(self)

source code 

Effectively translate Portage dependency string returning Entropy one.

Returns: string
Entropy dependency string
Raises: