VERSION

version 1.20

SYNOPSIS

use DPKG::Log;

my $package = DPKG::Log::Analyse::Package->new('package' => 'foobar');

DESCRIPTION

This module is used to analyse a dpkg log.

METHODS

Returns a new DPKG::Log::Analyse::Package object. Returns the name of this package. Return or set the version of this package. Return or set the previous version of this package. Return or set the status of this package. Compares two packages in their string representation. Compare two packages. See \s-1OVERLOADING\s0 for details on how the comparison works. Return this package as a string. This will return the package name and the version (if set) in the form package_name/version. If version is not set, it will return the package name only.

Overloading

This module explicitly overloads some operators. Each operand is expected to be a DPKG::Log::Analyse::Package object.

The string comparison operators, \*(L"eq\*(R" or \*(L"ne\*(R" 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 \s-1AND\s0 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 \*(L"package_name/version\*(R" if a version is set.

RELATED TO DPKG::Log::Analyse::Package…

DPKG::Log, DPKG::Version

AUTHOR

Patrick Schoenfeld <[email protected]>.

COPYRIGHT AND LICENSE

Copyright (C) 2011 Patrick Schoenfeld <[email protected]>

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.