Scroll to navigation

Lintian::Processable::FileInfo(3) Debian Package Checker Lintian::Processable::FileInfo(3)

NAME

Lintian::Processable::FileInfo - access to collected file-info data

SYNOPSIS

    use Lintian::Processable;
    my $processable = Lintian::Processable::Binary->new;

DESCRIPTION

Lintian::Processable::FileInfo provides an interface to package data for file(1) information, aka magic data.

INSTANCE METHODS

file_info (FILE)
Returns the output of file(1) for FILE (if it exists) or "undef".

NB: The value may have been calibrated by Lintian. A notorious example is gzip files, where file(1) can be unreliable at times (see #620289)

Needs-Info requirements for using file_info: file-info

saved_file_info
Returns the cached file (1) information.

AUTHOR

Originally written by Felix Lechner <felix.lechner@lease-up.com> for Lintian.

SEE ALSO

lintian(1), Lintian::Collect, Lintian::Collect::Binary, Lintian::Collect::Source
2020-02-26 Lintian v2.55.0~bpo10+1