DPKG::Log::Analyse::Package
Describe a package as analysed from a dpkg.log
- Provided by: libdpkg-log-perl (Version: 1.20-2)
- Report a bug
Describe a package as analysed from a dpkg.log
version 1.20
use DPKG::Log;
my $package = DPKG::Log::Analyse::Package->new('package' => 'foobar');
This module is used to analyse a dpkg log.
This module explicitly overloads some operators. Each operand is expected to be a DPKG::Log::Analyse::Package object.
The string comparison operators, "eq" or "ne" will use the string value for the comparison.
The numerical operators will use the package name and package version for comparison. That means a package1 == package2 if package1->name equals package2->name AND package1->version == package2->version.
The module stores versions as Dpkg::Version objects, therefore sorting different versions of the same package will work.
This module also overloads stringification returning either the package name if no version is set or "package_name/version" if a version is set.
DPKG::Log, DPKG::Version
Patrick Schoenfeld <schoenfeld@debian.org>.
Copyright (C) 2011 Patrick Schoenfeld <schoenfeld@debian.org>
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.