zypp::target Namespace Reference


Classes

class  CommitPackageCache
 Target::commit helper optimizing package provision. More...
struct  IMediaKey
 Helper storing a source id and media number. More...
class  CommitPackageCacheReadAhead
class  HardLocksFile
 Save and restore hardlocks. More...
class  Modalias
 Hardware abstaction layer singleton. More...
class  RequestedLocalesFile
 Save and restore locale set from file. More...
class  SoftLocksFile
 Save and restore soft locks. More...
class  RpmInstallPackageReceiver
class  RpmRemovePackageReceiver
class  TargetException
 Just inherits Exception to separate target exceptions. More...
class  TargetAbortedException
class  CommitPlugins
 Helper for commit plugin execution. More...
struct  QueryInstalledEditionHelper
 Helper for PackageProvider queries during commit. More...
struct  RepoProvidePackage
 Let the Source provide the package. More...
class  TargetImpl
 Base class for concrete Target implementations. More...
struct  PatchMessageReport
 Request to display the pre commit message of a patch. More...
struct  PatchScriptReport
 Indicate execution of a patch script. More...

Namespaces

namespace  rpm
namespace  hal

Functions

std::ostream & operator<< (std::ostream &str, const CommitPackageCache &obj)
std::ostream & operator<< (std::ostream &str, const IMediaKey &obj)
std::ostream & operator<< (std::ostream &str, const HardLocksFile &obj)
bool isBlackListed (const Pathname &dir_r, const char *file_r)
 Filter subtrees known to contain no modalias files.
void foreach_file_recursive (const Pathname &dir_r, Modalias::ModaliasList &arg)
 Recursively scan for modalias files and scan them to arg.
std::ostream & operator<< (std::ostream &str, const Modalias &obj)
std::ostream & operator<< (std::ostream &str, const RequestedLocalesFile &obj)
std::ostream & operator<< (std::ostream &str, const SoftLocksFile &obj)
void testCommitPlugins (const Pathname &path_r)
void writeUpgradeTestcase ()
std::pair< bool,
PatchScriptReport::Action
doExecuteScript (const Pathname &root_r, const Pathname &script_r, callback::SendReport< PatchScriptReport > &report_r)
 Execute script and report against report_r.
bool executeScript (const Pathname &root_r, const Pathname &script_r, callback::SendReport< PatchScriptReport > &report_r)
 Execute script and report against report_r.
bool RunUpdateScripts (const Pathname &root_r, const Pathname &scriptsPath_r, const std::vector< sat::Solvable > &checkPackages_r, bool aborting_r)
 Look for update scripts named 'name-version-release-*' and execute them.
void copyTo (std::ostream &out_r, const Pathname &file_r)
std::string notificationCmdSubst (const std::string &cmd_r, const UpdateNotificationFile &notification_r)
void sendNotification (const Pathname &root_r, const UpdateNotifications &notifications_r)
void RunUpdateMessages (const Pathname &root_r, const Pathname &messagesPath_r, const std::vector< sat::Solvable > &checkPackages_r, ZYppCommitResult &result_r)
 Look for update messages named 'name-version-release-*' and send notification according to ZConfig::updateMessagesNotify.
void XRunUpdateMessages (const Pathname &root_r, const Pathname &messagesPath_r, const std::vector< sat::Solvable > &checkPackages_r, ZYppCommitResult &result_r)
 IMPL_PTR_TYPE (TargetImpl)
static string generateRandomId ()
 generates a random id using uuidgen
void updateFileContent (const Pathname &filename, boost::function< bool()> condition, boost::function< string()> value)
 updates the content of filename if condition is true, setting the content the the value returned by value
static bool fileMissing (const Pathname &pathname)
 helper functor
parser::ProductFileData baseproductdata (const Pathname &root_r)
Pathname staticGuessRoot (const Pathname &root_r)
std::string firstNonEmptyLineIn (const Pathname &file_r)
 DEFINE_PTR_TYPE (TargetImpl)


Function Documentation

std::ostream& zypp::target::operator<< ( std::ostream &  str,
const CommitPackageCache &  obj 
)

Definition at line 72 of file CommitPackageCache.cc.

References zypp::target::CommitPackageCache::_pimpl.

std::ostream & zypp::target::operator<< ( std::ostream &  str,
const IMediaKey &  obj 
)

std::ostream& zypp::target::operator<< ( std::ostream &  str,
const HardLocksFile &  obj 
)

bool zypp::target::@454::isBlackListed ( const Pathname &  dir_r,
const char *  file_r 
) [inline, static]

Filter subtrees known to contain no modalias files.

Definition at line 43 of file Modalias.cc.

References PATH_IS.

Referenced by foreach_file_recursive().

void zypp::target::@454::foreach_file_recursive ( const Pathname &  dir_r,
Modalias::ModaliasList &  arg 
) [static]

Recursively scan for modalias files and scan them to arg.

Definition at line 57 of file Modalias.cc.

References zypp::iostr::getline(), isBlackListed(), and zypp::filesystem::readdir().

Referenced by zypp::target::Modalias::Impl::Impl().

std::ostream& zypp::target::operator<< ( std::ostream &  str,
const Modalias &  obj 
)

Definition at line 188 of file Modalias.cc.

References zypp::target::Modalias::_pimpl.

std::ostream& zypp::target::operator<< ( std::ostream &  str,
const RequestedLocalesFile &  obj 
)

std::ostream& zypp::target::operator<< ( std::ostream &  str,
const SoftLocksFile &  obj 
)

void zypp::target::testCommitPlugins ( const Pathname &  path_r  ) 

Definition at line 171 of file TargetImpl.cc.

References zypp::target::CommitPlugins::load(), and USR.

void zypp::target::writeUpgradeTestcase (  ) 

std::pair<bool,PatchScriptReport::Action> zypp::target::@479::doExecuteScript ( const Pathname &  root_r,
const Pathname &  script_r,
callback::SendReport< PatchScriptReport > &  report_r 
) [static]

Execute script and report against report_r.

Return std::pair<bool,PatchScriptReport::Action> to indicate if execution was successfull (first = true), or the desired PatchScriptReport::Action in case execution failed (first = false).

Note:
The packager is responsible for setting the correct permissions of the script. If the script is not executable it is reported as an error. We must not modify the permessions.

Definition at line 241 of file TargetImpl.cc.

References _, zypp::target::PatchScriptReport::ABORT, zypp::HistoryLog::comment(), MIL, zypp::target::PatchScriptReport::OUTPUT, zypp::ExternalProgram::Stderr_To_Stdout, and WAR.

Referenced by executeScript().

bool zypp::target::@479::executeScript ( const Pathname &  root_r,
const Pathname &  script_r,
callback::SendReport< PatchScriptReport > &  report_r 
) [static]

Execute script and report against report_r.

Return false if user requested ABORT.

Definition at line 283 of file TargetImpl.cc.

References zypp::target::PatchScriptReport::ABORT, doExecuteScript(), zypp::target::PatchScriptReport::IGNORE, INT, zypp::target::PatchScriptReport::RETRY, and WAR.

Referenced by RunUpdateScripts().

bool zypp::target::@479::RunUpdateScripts ( const Pathname &  root_r,
const Pathname &  scriptsPath_r,
const std::vector< sat::Solvable > &  checkPackages_r,
bool  aborting_r 
) [static]

Look for update scripts named 'name-version-release-*' and execute them.

Return false if ABORT was requested.

See also:
http://en.opensuse.org/Software_Management/Code11/Scripts_and_Messages

Definition at line 321 of file TargetImpl.cc.

References _, zypp::filesystem::addmod(), executeScript(), for_, zypp::str::form(), zypp::str::hasPrefix(), zypp::filesystem::md5sum(), MIL, zypp::filesystem::readdir(), report, and WAR.

Referenced by zypp::target::TargetImpl::commit().

void zypp::target::@479::copyTo ( std::ostream &  out_r,
const Pathname &  file_r 
) [inline, static]

Definition at line 407 of file TargetImpl.cc.

Referenced by sendNotification().

std::string zypp::target::@479::notificationCmdSubst ( const std::string &  cmd_r,
const UpdateNotificationFile &  notification_r 
) [inline, static]

void zypp::target::@479::sendNotification ( const Pathname &  root_r,
const UpdateNotifications &  notifications_r 
) [static]

void zypp::target::@479::RunUpdateMessages ( const Pathname &  root_r,
const Pathname &  messagesPath_r,
const std::vector< sat::Solvable > &  checkPackages_r,
ZYppCommitResult &  result_r 
) [static]

void zypp::target::XRunUpdateMessages ( const Pathname &  root_r,
const Pathname &  messagesPath_r,
const std::vector< sat::Solvable > &  checkPackages_r,
ZYppCommitResult &  result_r 
)

Definition at line 595 of file TargetImpl.cc.

References RunUpdateMessages().

zypp::target::IMPL_PTR_TYPE ( TargetImpl   ) 

static string zypp::target::generateRandomId (  )  [static]

generates a random id using uuidgen

Definition at line 691 of file TargetImpl.cc.

References zypp::ExternalProgram::close(), MIL, and zypp::externalprogram::ExternalDataSource::receiveLine().

Referenced by zypp::target::TargetImpl::createAnonymousId().

void zypp::target::updateFileContent ( const Pathname &  filename,
boost::function< bool()>  condition,
boost::function< string()>  value 
)

updates the content of filename if condition is true, setting the content the the value returned by value

Definition at line 721 of file TargetImpl.cc.

References zypp::filesystem::assert_dir(), MIL, and ZYPP_THROW.

Referenced by zypp::target::TargetImpl::createAnonymousId(), and zypp::target::TargetImpl::createLastDistributionFlavorCache().

static bool zypp::target::fileMissing ( const Pathname &  pathname  )  [static]

helper functor

Definition at line 756 of file TargetImpl.cc.

Referenced by zypp::target::TargetImpl::createAnonymousId().

parser::ProductFileData zypp::target::@479::baseproductdata ( const Pathname &  root_r  )  [static]

Pathname zypp::target::@479::staticGuessRoot ( const Pathname &  root_r  )  [inline, static]

std::string zypp::target::@479::firstNonEmptyLineIn ( const Pathname &  file_r  )  [inline, static]

zypp::target::DEFINE_PTR_TYPE ( TargetImpl   ) 


Generated on Tue May 5 14:49:54 2015 for libzypp by  doxygen 1.5.6