| Conditions | 1 | 
| Total Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | from coalib.bears.requirements.PackageRequirement import PackageRequirement  | 
            ||
| 10 | def __init__(self, package, version=""):  | 
            ||
| 11 | """  | 
            ||
| 12 | Constructs a new ``AptRequirement``, using the ``PackageRequirement``  | 
            ||
| 13 | constructor.  | 
            ||
| 14 | |||
| 15 |         >>> pr = AptRequirement('clang') | 
            ||
| 16 | >>> pr.manager  | 
            ||
| 17 | 'apt'  | 
            ||
| 18 | >>> pr.package  | 
            ||
| 19 | 'clang'  | 
            ||
| 20 | |||
| 21 | :param package: A string with the name of the package to be installed.  | 
            ||
| 22 | :param version: A version string. Leave empty to specify latest version.  | 
            ||
| 23 | """  | 
            ||
| 24 | PackageRequirement.__init__(self, 'apt', package, version)  | 
            ||
| 25 |