Dpkg::Vendor::Debian (3) Linux Manual Page
Dpkg::Vendor::Debian – Debian vendor object Description This vendor object customize the behaviour of dpkg scripts for Debian specific actions. Changes Version 0.xx This is a private module.
The Linux Manuals (man pages) document is an important part of Linux documents. Linux Manuals are organized as several sections. Each section has a group of commands for a specific area in Linux usage, administration or development.
Dpkg::Vendor::Debian – Debian vendor object Description This vendor object customize the behaviour of dpkg scripts for Debian specific actions. Changes Version 0.xx This is a private module.
Dpkg::Vendor – get access to some vendor specific information Description The files in $Dpkg::CONFDIR/origins/ can provide information about various vendors who are providing Debian packages. Currently those files look like this: Vendor: Debian Vendor-URL: https://www.debian.org/ Bugs: debbugs://bugs.debian.org If the vendor derives from another vendor, the file should document the relationship by listing the base distribution…
Dpkg::Substvars – handle variable substitution in strings Description It provides some an object which is able to substitute variables in strings. Methods my $s = Dpkg::Substvars->new($file) Create a new object that can do substitutions. By default it contains generic substitutions like ${Newline}, ${Space}, ${Tab}, ${dpkg:Version} and ${dpkg:Upstream-Version}. Additional substitutions will be read from the $file…
Dpkg::Source::Package – manipulate Debian source packages Description This module provides an object that can manipulate Debian source packages. While it supports both the extraction and the creation of source packages, the only API that is officially supported is the one that supports the extraction of the source package. Functions my $string = get_default_diff_ignore_regex() Returns the…
Dpkg::Path – some common path handling functions Description It provides some functions to handle various path. Methods get_pkg_root_dir($file) This function will scan upwards the hierarchy of directory to find out the directory which contains the “DEBIAN” sub-directory and it will return its path. This directory is the root directory of a package being built. If…
Dpkg::Interface::Storable – common methods related to object serialization Description Dpkg::Interface::Storable is only meant to be used as parent class for other objects. It provides common methods that are all implemented on top of two basic methods parse() and output(). Base Methods Those methods must be provided by the object that wish to inherit from Dpkg::Interface::Storable…
Dpkg::Index – generic index of control information Description This object represent a set of Dpkg::Control objects. Functions my $index = Dpkg::Index->new(%opts) Creates a new empty index. See set_options() for more details. $index->set_options(%opts) The “type” option is checked first to define default values for other options. Here are the relevant options: “get_key_func” is a function returning…
Dpkg::IPC – helper functions for IPC Description Dpkg::IPC offers helper functions to allow you to execute other programs in an easy, yet flexible way, while hiding all the gory details of IPC (Inter-Process Communication) from you. Methods spawn Creates a child process and executes another program in it. The arguments are interpreted as a hash…
Dpkg::Gettext – convenience wrapper around Locale::gettext Description The Dpkg::Gettext module is a convenience wrapper over the Locale::gettext module, to guarantee we always have working gettext functions, and to add some commonly used aliases. Functions my $trans = _g($msgid) Calls gettext() on the $msgid and returns its translation for the current locale. If gettext() is not…
Dpkg::Exit – program exit handlers Description The Dpkg::Exit module provides support functions to run handlers on exit. Functions push_exit_handler($func) Register a code reference into the exit function handlers stack. pop_exit_handler() Pop the last registered exit handler from the handlers stack. run_exit_handlers() Run the registered exit handlers. Changes Version 1.01 New functions: push_exit_handler(), pop_exit_handler(), run_exit_handlers() Deprecated…
Dpkg::Deps – parse and manipulate dependencies of Debian packages Description The Dpkg::Deps module provides objects implementing various types of dependencies. The most important function is deps_parse(), it turns a dependency line in a set of Dpkg::Deps::{Simple,AND,OR,Union} objects depending on the case. Functions All the deps_* functions are exported by default. deps_eval_implication($rel_p, $v_p, $rel_q, $v_q) ($rel_p,…
Dpkg::Control::Types – export CTRL_* constants Description You should not use this module directly. Instead you more likely want to use Dpkg::Control which also re-exports the same constants. This module has been introduced solely to avoid a dependency loop between Dpkg::Control and Dpkg::Control::Fields. Changes Version 0.xx This is a private module. Author Raphaël Hertzog <hertzog [at]…
Dpkg::Control::Info – parse files like debian/control Description It provides an object to access data of files that follow the same syntax as debian/control. Functions $c = Dpkg::Control::Info->new($file) Create a new Dpkg::Control::Info object for $file. If $file is omitted, it loads debian/control. If file is “-”, it parses the standard input. $c->reset() Resets what got read….
Dpkg::Control::HashCore – parse and manipulate a block of RFC822-like fields Description The Dpkg::Control::Hash object is a hash-like representation of a set of RFC822-like fields. The fields names are case insensitive and are always capitalized the same when output (see field_capitalize function in Dpkg::Control::Fields). The order in which fields have been set is remembered and is…
Dpkg::Control::Hash – parse and manipulate a block of RFC822-like fields Description This module is just like Dpkg::Control::HashCore, with vendor-specific field knowledge. Changes Version 1.00 Mark the module as public. Author Raphaël Hertzog <hertzog [at] debian.org>.
Dpkg::Control::FieldsCore – manage (list of official) control fields Description The modules contains a list of fieldnames with associated meta-data explaining in which type of control information they are allowed. The types are the CTRL_* constants exported by Dpkg::Control. Functions my $f = field_capitalize($field_name) Returns the field name properly capitalized. All characters are lowercase, except the…
Dpkg::Control::Fields – manage (list of official) control fields Description The module contains a list of vendor-neutral and vendor-specific fieldnames with associated meta-data explaining in which type of control information they are allowed. The vendor-neutral fieldnames and all functions are inherited from Dpkg::Control::FieldsCore. Changes Version 1.00 Mark the module as public. Author Raphaël Hertzog <hertzog [at]…
Dpkg::Control::Changelog – represent info fields output by dpkg-parsechangelog Description This object derives directly from Dpkg::Control with the type CTRL_CHANGELOG. Functions $c = Dpkg::Control::Changelog->new() Create a new empty set of changelog related fields. Changes Version 1.00 Mark the module as public. Author Raphaël Hertzog <hertzog [at] debian.org>.
Dpkg::Control – parse and manipulate official control-like information Description The Dpkg::Control object is a smart version of Dpkg::Control::Hash. It associates a type to the control information. That type can be used to know what fields are allowed and in what order they must be output. The types are constants that are exported by default. Here’s…
Dpkg::Conf – parse dpkg configuration files Description The Dpkg::Conf object can be used to read options from a configuration file. It can exports an array that can then be parsed exactly like @ARGV. Functions my $conf = Dpkg::Conf->new(%opts) Create a new Dpkg::Conf object. Some options can be set through %opts: if allow_short evaluates to true…