Fedora:...:ListLog(3)

πŸ“¦
version 0.12.1 Β· 2 versions
, in fedora 43

πŸ’– 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 is log while the constructor in the SYNOPSIS passes file β€” 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