1Fedora::Rebuild::PackagUes:e:rLiCsotnLtorgi(b3u)ted PerlFeDdoocruam:e:nRteabtuiiolnd::Package::ListLog(3)
2
3
4
5
6       Fedora::Rebuild::Package::ListLog - Append a package name to a file
7

SYNOPSIS

9           # Prepare a package
10           use threads::shared;
11           use Fedora::Rebuild::Package;
12           my $package = Fedora::Rebuild::Package->new(...);
13           $package->provides(shared_clone(...));
14
15           {
16               # Create a log file
17               my $log = Fedora::Rebuild::Package::ListLog->new(file => 'file');
18
19               # Log the package into a file
20               $log->log($package);
21           }
22           # Here the log file has been closed
23

DESCRIPTION

25       The class allows to append a Fedora::Rebuild::Package name into a file
26       in a safe way.
27

METHODS

29   new(file => $file_name)
30       This class method appends the $package name into the $file_name.
31       Mandatory attribute is log, a file where to log the package names to.
32
33   log($package)
34       Append Fedora::Rebuild::Package package name into the log file. This
35       operation is atomic.
36
37
38
39perl v5.34.0                      2022-02-2F3edora::Rebuild::Package::ListLog(3)
Impressum