quixote.build.debconf package

Module contents

Module providing helpers to deal with the debconf database, which is used to configure Debian packages.

class quixote.build.debconf.Select(value: str)

Class representing a debconf answer of type ‘Select’

__init__(value: str)
Parameters

value – the value to use for the answer

__str__()

Return str(self).

class quixote.build.debconf.MultiSelect(value: List[str])

Class representing a debconf answer of type ‘MultiSelect’

__init__(value: List[str])
Parameters

value – the value to use for the answer

__str__()

Return str(self).

class quixote.build.debconf.String(value: str)

Class representing a debconf answer of type ‘String’

__init__(value: str)
Parameters

value – the value to use for the answer

__str__()

Return str(self).

class quixote.build.debconf.Boolean(value: bool)

Class representing a debconf answer of type ‘Boolean’

__init__(value: bool)
Parameters

value – the value to use for the answer

__str__()

Return str(self).

class quixote.build.debconf.Note(value: str)

Class representing a debconf answer of type ‘Note’

__init__(value: str)
Parameters

value – the value to use for the answer

__str__()

Return str(self).

class quixote.build.debconf.Text(value: str)

Class representing a debconf answer of type ‘Text’

__init__(value: str)
Parameters

value – the value to use for the answer

__str__()

Return str(self).

class quixote.build.debconf.Password(value: str)

Class representing a debconf answer of type ‘Password’

__init__(value: str)
Parameters

value – the value to use for the answer

__str__()

Return str(self).

quixote.build.debconf.set_selections(package: str, question: str, value: Union[quixote.build.debconf.Select, quixote.build.debconf.MultiSelect, quixote.build.debconf.String, quixote.build.debconf.Boolean, quixote.build.debconf.Note, quixote.build.debconf.Text, quixote.build.debconf.Password])[source]

Insert an answer for a given question of a given package into the debconf database (see debconf-set-selections(1))

Parameters
  • package – the package owning the question

  • question – the name of the question

  • value – the value to use as answer for this question

quixote.build.debconf.reset(package: str, question: str)[source]

Reset answers for a given question of a given package in the debconf database

Parameters
  • package – the package owning the question

  • question – the name of the question

quixote.build.debconf.unregister(package: str, question: str)[source]

Unregister a given question of a given package in the debconf database

Parameters
  • package – the package owning the question

  • question – the name of the question

quixote.build.debconf.purge(package: str)[source]

Purge all the answers for questions of a given package in the debconf database

Parameters

package – the package whose questions to purge