Lintian::R...urceManager(3)
π Lintian::Reporting::ResourceManager β it's giving "resource manager" π
okay bestie so this is a manual page from Lintian (the Debian package checker), and the page is Lintian::R...urceManager(3) β yes the title got truncated, iconic behavior, but the real full name is Lintian::Reporting::ResourceManager and that's what we're learning today. pull up a chair π«Ά
β¨ NAME β¨
Lintian::Reporting::ResourceManager β a simple resource manager for html_reports. that's it. that's the whole vibe. πΈ
β¨ SYNOPSIS β¨
use Lintian::Reporting::ResourceManager;
my $resMan = Lintian::Reporting::ResourceManager->new(
'html_dir' => 'path/to/HTML-root',
);
# Copy the resource
$resMan->install_resource('path/to/my-image.png', { install_method => 'copy'} );
# Move the resource
$resMan->install_resource('path/to/generated-styles.css');
print encode_utf8('Image: ' . $resMan->resource_url('my-image.png'), "\n");
print encode_utf8('CSS: ' . $resMan->resource_url('generated-styles.css'), "\n");
see how it just... works? no notes. π
β¨ DESCRIPTION β¨
A simple resource manager for Lintian's reporting tool, html_reports.
literally that's the whole description. short and slay. lowkey everything you need is in the methods below bestie, keep scrolling β¬οΈ
β¨ CLASS METHODS β¨
π« new(TYPE, OPTS)
Instantiates a new resource manager. β¨
OPTS is a key-value list, which must contain the key "html_dir" set to the root of the HTML path. It is beneath this path that all resources will be installed β like, think of it as the house where all your little resource babies get to live. π
β¨ INSTANCE METHODS β¨
π¦ install_resource(RESOURCE[, OPT])
Installs RESOURCE into the html root. The resource may be renamed (based on content etc.). π
important!!! the basename ofRESOURCEmust be unique between all resources installed. See"resource_url(RESOURCE_NAME)". no dupe names, bestie, the manager will not survive that π
If OPT is given, it must be a hashref with 0 or more of the following keys (and values).
π install_method
Can be "copy" or "move" (default). If set to "move", the original file will be renamed into its new location. Otherwise, a copy is done and the original file is left in place. pick your fighter βοΈ (but default is move, periodt)
π source_file
By default, the path denoted by RESOURCE is both the resource name and the source file. This option can be used to install a given file as RESOURCE regardless of the basename of the source file.
If this is passed, RESOURCE must be a basename (i.e. without any slashes). no slashes, not even one, I'm serious π«Ά
π¦ resource_url(RESOURCE_NAME)
Returns the path (relative to the HTML root) to a resource installed via "install_resource(RESOURCE)", where RESOURCE_NAME is the basename of the path given to install_resource.
so you give it the lil name, it gives you back where it actually lives. matchmaker energy π
π¦ resource_integrity_value(RESOURCE_NAME)
Return a string that is valid in the "integrity" field of a "<link>" HTML tag. (See https://www.w3.org/TR/SRI/)
SRI girlies rise π if you know, you know. iykyk.
β¨ AUTHOR β¨
Originally written by Niels Thykier <niels@thykier.net> for Lintian. π absolute legend behavior, thank you for your service π«‘
and that's the whole page babes!! this one came from Lintian v2.139.0ubuntu2, dated 2026-10-08, and it's page Lintian::R...urceManager(3) of the Debian Package Checker manual set. go forth and manage your resources β¨π
πΈ
π¦ where this page comes from
- ubuntu stonking: lintian 2.139.0ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms