Conditions | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from coalib.bears.requirements.PackageRequirement import PackageRequirement |
||
11 | def __init__(self, **manager_commands): |
||
|
|||
12 | """ |
||
13 | Constructs a new ``DistributionRequirement``, using the |
||
14 | ``PackageRequirement`` constructor. |
||
15 | |||
16 | >>> dr = DistributionRequirement(apt_get='libclang', dnf='libclangg') |
||
17 | >>> dr.package['apt_get'] |
||
18 | 'libclang' |
||
19 | >>> dr.package['dnf'] |
||
20 | 'libclangg' |
||
21 | |||
22 | :param manager_commands: comma separated (manager='package') pairs. |
||
23 | """ |
||
24 | self.package = manager_commands |
||
25 | |||
50 |
It is generally advisable to initialize the super-class by calling its
__init__
method: