Fedora:...:ListLog(3)
π Fedora::Rebuild::Package::ListLog π
okay bestie, so this one is from the User Contributed Perl Documentation collection for Fedora, and its whole entire personality is: append a package name to a file. That's it. That's the job. And it does it safely, which is the slay part. π
β¨ NAME β¨
Fedora::Rebuild::Package::ListLog β append a package name to a file π«Ά
πΈ SYNOPSIS πΈ
# Prepare a package
use threads::shared;
use Fedora::Rebuild::Package;
my $package = Fedora::Rebuild::Package->new(...);
$package->provides(shared_clone(...));
{
# Create a log file
my $log = Fedora::Rebuild::Package::ListLog->new(file => 'file');
# Log the package into a file
$log->log($package);
}
# Here the log file has been closed
like, look at that little { ... } block. the log file gets created in there, the package gets logged, and the second the block ends, the log file is closed. scope-based cleanup is so main character honestly π
π¦ DESCRIPTION π¦
This class lets you append a Fedora::Rebuild::Package name into a file in a safe way. no cap. that's the entire vibe check and it passed. β¨
π METHODS π
π new(file => $file_name)
This class method appends the $package name into the $file_name. π
The mandatory attribute is log, a file where to log the package names to. π
not me noticing it says the mandatory attribute islogwhile the constructor in the SYNOPSIS passesfileβ I'm just telling you exactly what the page says, bestie, don't shoot the messenger π
π log($package)
Append Fedora::Rebuild::Package package name into the log file. This operation is atomic. π₯
atomic means it's giving "all or nothing" energy β no half-written package names, no mess, no drama. π
and that's the whole page!! it's a short one but she ate and left no crumbs π
cute sign-off time: this lil doc is perl v5.42.0, dated 2025-07-25, and lives at Fedora:...:ListLog(3) in the User Contributed Perl Documentation. mwah. π«ΆπΈ
π¦ where this page comes from
- fedora 43: perl-Fedora-Rebuild 0.12.1-36.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms