sourCEntral - mobile manpages

pdf

Fedora::Rebuild::Package::ListLog

Fedora::Rebuild::Package::ListLog − Append a package name to a fileSYNOPSIS

           # 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

DESCRIPTION

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

METHODS

new(file => $file_name)
This class method appends the $package name into the $file_name. Mandatory attribute is log, a file where to log the package names to.

log($package)
Append Fedora::Rebuild::Package package name into the log file. This operation is atomic.

pdf