.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Debian::Debget 3pm" .TH Debian::Debget 3pm "2016-11-21" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Debian::Debget \- helper functions used by debget et al .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\s-1XXX\s0 .SH "DESCRIPTION" .IX Header "DESCRIPTION" These are functions used by \fBdebget\fR and related scripts, but you can use them, too. I will do everything possible to retain backwards compatibility for the interfaces documented here. .PP Most of these functions will \f(CW\*(C`die\*(C'\fR if they're called in a context (scalar, list) which doesn't match what they expect. This is so that I will be able to change them to return something different in the other context without breaking old code. .SH "IMPORTABLES" .IX Header "IMPORTABLES" .IP "binary_package_info \fIpackage\fR" 4 .IX Item "binary_package_info package" This function returns some information about a binary package. .Sp If the \fIpackage\fR isn't found nothing is returned. If it is found, the return value is a data structure like this: .Sp .Vb 3 \& $r\->{$distribution}{$architecture} = $version; \& # $distribution => \*(Aqstable\*(Aq, \*(Aqexperimental\*(Aq, etc. \& # $architecture => \*(Aqi386\*(Aq, \*(Aqpowerpc\*(Aq, etc. .Ve .Sp If something goes seriously wrong \fBbinary_package_info\fR will \f(CW\*(C`die\*(C'\fR. .IP "source_package_info \fIpackage\fR" 4 .IX Item "source_package_info package" This function returns some information about a source package. .Sp If the \fIpackage\fR isn't found nothing is returned. If it is found, the return value is a data structure like this: .Sp .Vb 4 \& $r\->{$distribution} = [$version, @binary_package_list]; \& # $distribution => \*(Aqstable\*(Aq, \*(Aqexperimental\*(Aq, etc. \& # $version => \*(Aq123.4\-5\*(Aq, etc. \& # @binary_package_list => qw(nethack\-common nethack\-x11), etc. .Ve .IP "cmp_debian_versions \fIv1\fR, \fIv2\fR" 4 .IX Item "cmp_debian_versions v1, v2" This is like \f(CW\*(C`cmp\*(C'\fR for Debian package version numbers. It is prototyped to take 2 scalar arguments, so it can be used as-is as a \f(CW\*(C`sort\*(C'\fR comparison function. .IP "upstream_version \fIdebian-version\fR" 4 .IX Item "upstream_version debian-version" This returns the upstream version extracted from the given \fIdebian-version\fR .IP "pool_dir \fIpackage\fR" 4 .IX Item "pool_dir package" This returns the pool directory (starting at the \f(CW\*(C`pool/\*(C'\fR level) in which files for \fIpackage\fR are stored. \fIpackage\fR can be either a binary or source package name. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIdebget\fR\|(1), \fIAptPkg\fR\|(3pm) .SH "AUTHOR" .IX Header "AUTHOR" Roderick Schertler