Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpkg::vendor::default(3) [linux man page]

Dpkg::Vendor::Default(3)					   libdpkg-perl 					  Dpkg::Vendor::Default(3)

NAME
Dpkg::Vendor::Default - default vendor object DESCRIPTION
A vendor object is used to provide vendor specific behaviour in various places. This is the default object used in case there's none for the current vendor or in case the vendor could not be identified (see Dpkg::Vendor documentation). It provides some hooks that are called by various dpkg-* tools. If you need a new hook, please file a bug against dpkg-dev and explain your need. Note that the hook API has no guaranty to be stable over an extended period. If you run an important distribution that makes use of vendor hooks, you'd better submit them for integration so that we avoid breaking your code. FUNCTIONS
$vendor_obj = Dpkg::Vendor::Default->new() Creates the default vendor object. Can be inherited by all vendor objects if they don't need any specific initialization at object creation time. $vendor_obj->run_hook($id, @params) Run the corresponding hook. The parameters are hook-specific. The supported hooks are: before-source-build ($srcpkg) The first parameter is a Dpkg::Source::Package object. The hook is called just before the execution of $srcpkg->build(). keyrings () The hook is called when dpkg-source is checking a signature on a source package. It takes no parameters, but returns a (possibly empty) list of vendor-specific keyrings. register-custom-fields () The hook is called in Dpkg::Control::Fields to register custom fields. You should return a list of arrays. Each array is an operation to perform. The first item is the name of the operation and corresponds to a field_* function provided by Dpkg::Control::Fields. The remaining fields are the parameters that are passed unchanged to the corresponding function. Known operations are "register", "insert_after" and "insert_before". post-process-changelog-entry ($fields) The hook is called in Dpkg::Changelog to post-process a Dpkg::Changelog::Entry after it has been created and filled with the appropriate values. update-buildflags ($flags) The hook is called in Dpkg::BuildFlags to allow the vendor to override the default values set for the various build flags. $flags is a Dpkg::BuildFlags object. 1.16.0.3 2012-04-17 Dpkg::Vendor::Default(3)

Check Out this Related Man Page

Dpkg::Changelog::Entry(3)					   libdpkg-perl 					 Dpkg::Changelog::Entry(3)

NAME
Dpkg::Changelog::Entry - represents a changelog entry DESCRIPTION
This object represents a changelog entry. It is composed of a set of lines with specific purpose: an header line, changes lines, a trailer line. Blank lines can be between those kind of lines. FUNCTIONS
my $entry = Dpkg::Changelog::Entry->new() Creates a new object. It doesn't represent a real changelog entry until one has been successfully parsed or built from scratch. my $str = $entry->output() "$entry" Get a string representation of the changelog entry. $entry->output($fh) Print the string representation of the changelog entry to a filehandle. $entry->get_part($part) Return either a string (for a single line) or an array ref (for multiple lines) corresponding to the requested part. $part can be "header, "changes", "trailer", "blank_after_header", "blank_after_changes", "blank_after_trailer". $entry->set_part($part, $value) Set the value of the corresponding part. $value can be a string or an array ref. $entry->extend_part($part, $value) Concatenate $value at the end of the part. If the part is already a multi-line value, $value is added as a new line otherwise it's concatenated at the end of the current line. $is_empty = $entry->is_empty() Returns 1 if the changelog entry doesn't contain anything at all. Returns 0 as soon as it contains something in any of its non-blank parts. $entry->normalize() Normalize the content. Strip whitespaces at end of lines, use a single empty line to separate each part. my $src = $entry->get_source() Return the name of the source package associated to the changelog entry. my $ver = $entry->get_version() Return the version associated to the changelog entry. my @dists = $entry->get_distributions() Return a list of target distributions for this version. $fields = $entry->get_optional_fields() Return a set of optional fields exposed by the changelog entry. It always returns a Dpkg::Control object (possibly empty though). $urgency = $entry->get_urgency() Return the urgency of the associated upload. my $maint = $entry->get_maintainer() Return the string identifying the person who signed this changelog entry. my $time = $entry->get_timestamp() Return the timestamp of the changelog entry. my $str = $entry->get_dpkg_changes() Returns a string that is suitable for usage in a "Changes" field in the output format of "dpkg-parsechangelog". AUTHOR
Raphael Hertzog <hertzog@debian.org>. 1.16.0.3 2012-04-17 Dpkg::Changelog::Entry(3)
Man Page