#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <list>
#include <set>
#include <sys/types.h>
#include <dirent.h>
#include "zypp/base/LogTools.h"
#include "zypp/base/Exception.h"
#include "zypp/base/Iterator.h"
#include "zypp/base/Gettext.h"
#include "zypp/base/IOStream.h"
#include "zypp/base/Functional.h"
#include "zypp/base/UserRequestException.h"
#include "zypp/ZConfig.h"
#include "zypp/ZYppFactory.h"
#include "zypp/PoolItem.h"
#include "zypp/ResObjects.h"
#include "zypp/Url.h"
#include "zypp/TmpPath.h"
#include "zypp/RepoStatus.h"
#include "zypp/ExternalProgram.h"
#include "zypp/Repository.h"
#include "zypp/ResFilters.h"
#include "zypp/HistoryLog.h"
#include "zypp/target/TargetImpl.h"
#include "zypp/target/TargetCallbackReceiver.h"
#include "zypp/target/rpm/librpmDb.h"
#include "zypp/target/CommitPackageCache.h"
#include "zypp/parser/ProductFileReader.h"
#include "zypp/pool/GetResolvablesToInsDel.h"
#include "zypp/solver/detail/Testcase.h"
#include "zypp/repo/DeltaCandidates.h"
#include "zypp/repo/PackageProvider.h"
#include "zypp/repo/SrcPackageProvider.h"
#include "zypp/sat/Pool.h"
#include "zypp/sat/Transaction.h"
#include "zypp/PluginScript.h"
Go to the source code of this file.
Namespaces | |
namespace | zypp |
namespace | zypp::target |
Classes | |
class | zypp::target::CommitPlugins |
Helper for commit plugin execution. More... | |
struct | zypp::target::QueryInstalledEditionHelper |
Helper for PackageProvider queries during commit. More... | |
struct | zypp::target::RepoProvidePackage |
Let the Source provide the package. More... | |
Defines | |
#define | SUBST_IF(PAT, VAL) if ( ret.find( PAT ) != std::string::npos ) ret = str::gsub( ret, PAT, VAL ) |
Functions | |
void | zypp::target::testCommitPlugins (const Pathname &path_r) |
void | zypp::target::writeUpgradeTestcase () |
std::pair< bool, PatchScriptReport::Action > | zypp::target::doExecuteScript (const Pathname &root_r, const Pathname &script_r, callback::SendReport< PatchScriptReport > &report_r) |
Execute script and report against report_r. | |
bool | zypp::target::executeScript (const Pathname &root_r, const Pathname &script_r, callback::SendReport< PatchScriptReport > &report_r) |
Execute script and report against report_r. | |
bool | zypp::target::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 | zypp::target::copyTo (std::ostream &out_r, const Pathname &file_r) |
std::string | zypp::target::notificationCmdSubst (const std::string &cmd_r, const UpdateNotificationFile ¬ification_r) |
void | zypp::target::sendNotification (const Pathname &root_r, const UpdateNotifications ¬ifications_r) |
void | zypp::target::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 | 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 () |
generates a random id using uuidgen | |
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 | |
static bool | zypp::target::fileMissing (const Pathname &pathname) |
helper functor | |
parser::ProductFileData | zypp::target::baseproductdata (const Pathname &root_r) |
Pathname | zypp::target::staticGuessRoot (const Pathname &root_r) |
std::string | zypp::target::firstNonEmptyLineIn (const Pathname &file_r) |
Definition in file TargetImpl.cc.
#define SUBST_IF | ( | PAT, | |||
VAL | ) | if ( ret.find( PAT ) != std::string::npos ) ret = str::gsub( ret, PAT, VAL ) |
Referenced by zypp::target::notificationCmdSubst().