Package gbp :: Package deb :: Module control :: Class Control

[hide private]
[frames] | no frames]

# Class Control

    object --+
             |
            Control

A Debian control

Instance Methods | [hide private]

`gbp.deb.conrol.Control` object

__init__(self, contents=None, filename=`'``debian/control``'`) Parse an existing control file. |

__getitem__(self, item) |

__setitem__(self, item, value) |

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

Properties | [hide private]

| name The name of the package
| section The section of the package
| priority The priority of the package
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, contents=None, filename=`'``debian/control``'`)
(Constructor)

Parse an existing control file.

Parameters:
  - `contents` (`str`) - content of a control file
  - `filename` (`str`) - name of the control file
Returns: `gbp.deb.conrol.Control` object
  Control object
Overrides: object.__init__

Property Details | [hide private]

### name

The name of the package

Get Method:
  unreachable.name(self) - The name of the package

### section

The section of the package

Get Method:
  unreachable.section(self) - The section of the package

### priority

The priority of the package

Get Method:
  unreachable.priority(self) - The priority of the package