Fink::FinkVersion(3) Fink documentation Fink::FinkVersion(3)NAMEFink::FinkVersion - Fink version numbers
SYNOPSIS
use Fink::FinkVersion qw(:ALL);
my $fink_version = fink_version;
my $arch = get_arch;
my $default_version = default_binary_version($distribution);
my $max_info_level = max_info_level;
DESCRIPTION
This module retrieves the version numbers of various parts of the fink
installation.
Functions
These functions are exported on request. You can export them all with
use Fink::FinkVersion qw(:ALL);
fink_version
my $fink_version = fink_version;
Returns the version of the fink source code.
get_arch
my $arch = get_arch;
Returns the architecture string to be used on this platform. For
example, "powerpc" for ppc.
Callers assume the value is all-lowercase, but some also assume it
is the canonical form. So we can't use lc() here without breaking
the latter if there are any cases of canonical forms that have
upper-case chars. If we find any, have to check our callers for
incorrect assumptions.
default_binary_version
my $b_dist_version = default_binary_version($distribution);
Returns the most recent (binary) fink distribution version
corresponding to $distribution, or undef if there is no known
binary distro for the given $distribution.
max_info_level
my $max_info_level = max_info_level;
Returns the highest level of package description file that this
fink can parse. If a .info is componsed of a 'InfoN: <<' ... '<<'
block where N is a larger integer than that returned by this
function, the entire .info file should be ignored.
Fink 0.36.3.1 2014-01-15 Fink::FinkVersion(3)