Dpkg
view release on metacpan or search on metacpan
finds unknown packages while setting the selections. Closes: #703092
* Print nicer error messages in perl scripts using Getopt::Long by trapping
$SIG{__WARN__} to call usageerr() on option parse errors.
* Move the exit call out from usage() in dpkg-scansources so that usageerr()
gives a correct exit code. Thanks to Bernhard R. Link <brlink@debian.org>.
* Print correct error message on unknown dpkg-name options before --.
* Require at least one filename on dpkg-name after --.
* Switch program usage errors to not print entire --help output.
Closes: #681371
* Document that «dpkg-parsechangelog -l-» can be used to read from stdin.
* Support parsing compressed changelog files transparently. Closes: #684196
* Sort files inside new diffs generated by dpkg-source lexicographically.
Closes: #689193
* Add support for a build_arch option in Dpkg::Deps deps_parse().
Thanks to Colin Watson <cjwatson@ubuntu.com>. Closes: #697297
* Move epoch-less or revision-less output logic to Dpkg::Version.
Based on a patch by Bernhard R. Link <brlink@debian.org>.
* Catch mismatches between version strings and format versions in
dpkg-source. Ensure that a 3.0 (quilt) package has a non-native version
and that a 3.0 (native) package has a native version. Closes: #700177
Thanks to Bernhard R. Link <brlink@debian.org>.
lib/Dpkg/Compression/FileHandle.pm view on Meta::CPAN
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
=encoding utf8
=head1 NAME
Dpkg::Compression::FileHandle - class dealing transparently with file compression
=head1 SYNOPSIS
use Dpkg::Compression::FileHandle;
my ($fh, @lines);
$fh = Dpkg::Compression::FileHandle->new(filename => 'sample.gz');
print $fh "Something\n";
close $fh;
lib/Dpkg/Compression/FileHandle.pm view on Meta::CPAN
close $fh;
$fh = Dpkg::Compression::FileHandle->new();
$fh->open('sample.xz', 'r');
@lines = $fh->getlines();
$fh->close();
=head1 DESCRIPTION
Dpkg::Compression::FileHandle is a class that can be used
like any filehandle and that deals transparently with compressed
files. By default, the compression scheme is guessed from the filename
but you can override this behavior with the method set_compression().
If you don't open the file explicitly, it will be auto-opened on the
first read or write operation based on the filename set at creation time
(or later with the set_filename() method).
Once a file has been opened, the filehandle must be closed before being
able to open another file.
lib/Dpkg/Compression/FileHandle.pm view on Meta::CPAN
use parent qw(IO::File Tie::Handle);
# Useful reference to understand some kludges required to
# have the class behave like a filehandle
# http://blog.woobling.org/2009/10/are-filehandles-objects.html
=head1 STANDARD FUNCTIONS
The standard functions acting on filehandles should accept a
Dpkg::Compression::FileHandle object transparently including
open() (only when using the variant with 3 parameters), close(),
binmode(), eof(), fileno(), getc(), print(), printf(), read(),
sysread(), say(), write(), syswrite(), seek(), sysseek(), tell().
Note however that seek() and sysseek() will only work on uncompressed
files as compressed files are really pipes to the compressor programs
and you can't seek on a pipe.
=head1 FileHandle METHODS
lib/Dpkg/Index.pm view on Meta::CPAN
$self->add($item);
$item = $self->new_item();
$i++;
}
return $i;
}
=item $index->load($file)
Reads the file and creates all items parsed. Returns the number of items
parsed. Handles compressed files transparently based on their extensions.
=item $item = $index->new_item()
Creates a new item. Mainly useful for derived objects that would want
to override this method to return something else than a L<Dpkg::Control>
object.
=cut
sub new_item {
lib/Dpkg/OpenPGP.pm view on Meta::CPAN
# along with this program. If not, see <https://www.gnu.org/licenses/>.
=encoding utf8
=head1 NAME
Dpkg::OpenPGP - multi-backend OpenPGP support
=head1 DESCRIPTION
This module provides a class for transparent multi-backend OpenPGP support.
B<Note>: This is a private module, its API can change at any time.
=cut
package Dpkg::OpenPGP 0.01;
use strict;
use warnings;
( run in 1.166 second using v1.01-cache-2.11-cpan-0a6323c29d9 )