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 ¬ification_r) |
void | sendNotification (const Pathname &root_r, const UpdateNotifications ¬ifications_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) |
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 | |||
) |
Definition at line 35 of file CommitPackageCacheReadAhead.cc.
References zypp::target::IMediaKey::_mediaNr, zypp::target::IMediaKey::_repo, zypp::repo::RepoInfoBase::alias(), zypp::Repository::id(), and zypp::Repository::info().
std::ostream& zypp::target::operator<< | ( | std::ostream & | str, | |
const HardLocksFile & | obj | |||
) |
Definition at line 72 of file HardLocksFile.cc.
References zypp::target::HardLocksFile::_dataPtr, zypp::target::HardLocksFile::data(), and zypp::target::HardLocksFile::file().
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 | |||
) |
std::ostream& zypp::target::operator<< | ( | std::ostream & | str, | |
const RequestedLocalesFile & | obj | |||
) |
Definition at line 80 of file RequestedLocalesFile.cc.
References zypp::target::RequestedLocalesFile::_localesPtr, zypp::target::RequestedLocalesFile::file(), and zypp::target::RequestedLocalesFile::locales().
std::ostream& zypp::target::operator<< | ( | std::ostream & | str, | |
const SoftLocksFile & | obj | |||
) |
Definition at line 80 of file SoftLocksFile.cc.
References zypp::target::SoftLocksFile::_dataPtr, zypp::target::SoftLocksFile::data(), and zypp::target::SoftLocksFile::file().
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 | ( | ) |
Definition at line 185 of file TargetImpl.cc.
References for_, zypp::str::form(), zypp::ZConfig::instance(), MIL, zypp::Date::now(), zypp::filesystem::readdir(), zypp::filesystem::recursive_rmdir(), zypp::str::startsWith(), and WAR.
Referenced by zypp::target::TargetImpl::commit().
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
).
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.
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] |
std::string zypp::target::@479::notificationCmdSubst | ( | const std::string & | cmd_r, | |
const UpdateNotificationFile & | notification_r | |||
) | [inline, static] |
Definition at line 416 of file TargetImpl.cc.
References zypp::sat::Solvable::asString(), zypp::UpdateNotificationFile::file(), zypp::UpdateNotificationFile::solvable(), and SUBST_IF.
Referenced by sendNotification().
void zypp::target::@479::sendNotification | ( | const Pathname & | root_r, | |
const UpdateNotifications & | notifications_r | |||
) | [static] |
Definition at line 426 of file TargetImpl.cc.
References _, zypp::ui::asString(), zypp::ExternalProgram::close(), copyTo(), DBG, ERR, for_, zypp::ZConfig::instance(), INT, MIL, notificationCmdSubst(), zypp::filesystem::TmpPath::path(), zypp::externalprogram::ExternalDataSource::receiveLine(), zypp::str::splitEscaped(), zypp::ExternalProgram::Stderr_To_Stdout, zypp::str::toLower(), and zypp::str::trim().
Referenced by RunUpdateMessages().
void zypp::target::@479::RunUpdateMessages | ( | const Pathname & | root_r, | |
const Pathname & | messagesPath_r, | |||
const std::vector< sat::Solvable > & | checkPackages_r, | |||
ZYppCommitResult & | result_r | |||
) | [static] |
Look for update messages named 'name-version-release-*' and send notification according to ZConfig::updateMessagesNotify.
Definition at line 545 of file TargetImpl.cc.
References _, zypp::HistoryLog::comment(), for_, zypp::str::form(), zypp::str::hasPrefix(), MIL, zypp::filesystem::readdir(), zypp::ZYppCommitResult::rUpdateMessages(), sendNotification(), and zypp::ZYppCommitResult::updateMessages().
Referenced by zypp::target::TargetImpl::commit(), and XRunUpdateMessages().
void zypp::target::XRunUpdateMessages | ( | const Pathname & | root_r, | |
const Pathname & | messagesPath_r, | |||
const std::vector< sat::Solvable > & | checkPackages_r, | |||
ZYppCommitResult & | result_r | |||
) |
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] |
Definition at line 1654 of file TargetImpl.cc.
References zypp::parser::ProductFileReader::scanFile(), and ZYPP_CAUGHT.
Referenced by zypp::target::TargetImpl::distributionLabel(), zypp::target::TargetImpl::distributionVersion(), zypp::target::TargetImpl::targetDistribution(), and zypp::target::TargetImpl::targetDistributionRelease().
Pathname zypp::target::@479::staticGuessRoot | ( | const Pathname & | root_r | ) | [inline, static] |
Definition at line 1671 of file TargetImpl.cc.
References zypp::ZConfig::instance().
Referenced by zypp::target::TargetImpl::anonymousUniqueId(), zypp::target::TargetImpl::distributionFlavor(), zypp::target::TargetImpl::distributionLabel(), zypp::target::TargetImpl::distributionVersion(), zypp::target::TargetImpl::targetDistribution(), and zypp::target::TargetImpl::targetDistributionRelease().
std::string zypp::target::@479::firstNonEmptyLineIn | ( | const Pathname & | file_r | ) | [inline, static] |
Definition at line 1684 of file TargetImpl.cc.
References zypp::str::trim().
Referenced by zypp::target::TargetImpl::anonymousUniqueId(), and zypp::target::TargetImpl::distributionFlavor().
zypp::target::DEFINE_PTR_TYPE | ( | TargetImpl | ) |