libzypp  17.31.0
zypp::target::RpmPostTransCollector::Impl Class Reference

RpmPostTransCollector implementation. More...

Inheritance diagram for zypp::target::RpmPostTransCollector::Impl:

Public Member Functions

 Impl (const Pathname &root_r)
 
 ~Impl ()
 
bool collectScriptFromPackage (ManagedFile rpmPackage_r)
 Extract and remember a packages posttrans script for later execution. More...
 
bool executeScripts ()
 Execute the remembered scripts. More...
 
void discardScripts ()
 Discard all remembered scrips. More...
 

Private Member Functions

Pathname tmpDir ()
 Lazy create tmpdir on demand. More...
 

Private Attributes

Pathname _root
 
std::list< std::pair< std::string, std::string > > _scripts
 
boost::scoped_ptr< filesystem::TmpDir_ptrTmpdir
 
UserDataJobReport _myJobReport
 JobReport with ContentType "cmdout/%posttrans". More...
 

Friends

std::ostream & operator<< (std::ostream &str, const Impl &obj)
 
std::ostream & dumpOn (std::ostream &str, const Impl &obj)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const RpmPostTransCollector::Impl &obj)
 
std::ostream & dumpOn (std::ostream &str, const RpmPostTransCollector::Impl &obj)
 

Detailed Description

RpmPostTransCollector implementation.

Definition at line 43 of file RpmPostTransCollector.cc.

Constructor & Destructor Documentation

◆ Impl()

zypp::target::RpmPostTransCollector::Impl::Impl ( const Pathname root_r)
inline

Definition at line 48 of file RpmPostTransCollector.cc.

◆ ~Impl()

zypp::target::RpmPostTransCollector::Impl::~Impl ( )
inline

Definition at line 53 of file RpmPostTransCollector.cc.

Member Function Documentation

◆ collectScriptFromPackage()

bool zypp::target::RpmPostTransCollector::Impl::collectScriptFromPackage ( ManagedFile  rpmPackage_r)
inline

Extract and remember a packages posttrans script for later execution.

Definition at line 57 of file RpmPostTransCollector.cc.

◆ executeScripts()

bool zypp::target::RpmPostTransCollector::Impl::executeScripts ( )
inline

Execute the remembered scripts.

Definition at line 86 of file RpmPostTransCollector.cc.

◆ discardScripts()

void zypp::target::RpmPostTransCollector::Impl::discardScripts ( )
inline

Discard all remembered scrips.

Definition at line 179 of file RpmPostTransCollector.cc.

◆ tmpDir()

Pathname zypp::target::RpmPostTransCollector::Impl::tmpDir ( )
inlineprivate

Lazy create tmpdir on demand.

Definition at line 204 of file RpmPostTransCollector.cc.

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  str,
const Impl obj 
)
friend

◆ dumpOn [1/2]

std::ostream& dumpOn ( std::ostream &  str,
const Impl obj 
)
friend

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  str,
const RpmPostTransCollector::Impl obj 
)
related

Stream output

Definition at line 220 of file RpmPostTransCollector.cc.

◆ dumpOn() [2/2]

std::ostream & dumpOn ( std::ostream &  str,
const RpmPostTransCollector::Impl obj 
)
related

Verbose stream output

Definition at line 224 of file RpmPostTransCollector.cc.

Member Data Documentation

◆ _root

Pathname zypp::target::RpmPostTransCollector::Impl::_root
private

Definition at line 212 of file RpmPostTransCollector.cc.

◆ _scripts

std::list< std::pair< std::string, std::string > > zypp::target::RpmPostTransCollector::Impl::_scripts
private

Definition at line 213 of file RpmPostTransCollector.cc.

◆ _ptrTmpdir

boost::scoped_ptr<filesystem::TmpDir> zypp::target::RpmPostTransCollector::Impl::_ptrTmpdir
private

Definition at line 214 of file RpmPostTransCollector.cc.

◆ _myJobReport

UserDataJobReport zypp::target::RpmPostTransCollector::Impl::_myJobReport
private

JobReport with ContentType "cmdout/%posttrans".

Definition at line 216 of file RpmPostTransCollector.cc.


The documentation for this class was generated from the following file: