libzypp 17.31.23
TargetImpl.cc File Reference
#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-core/base/UserRequestException>
#include <zypp/base/Json.h>
#include <zypp/ZConfig.h>
#include <zypp/ZYppFactory.h>
#include <zypp/PathInfo.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-core/ShutdownLock_p.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/target/RpmPostTransCollector.h>
#include <zypp/parser/ProductFileReader.h>
#include <zypp/repo/SrcPackageProvider.h>
#include <zypp/sat/Pool.h>
#include <zypp/sat/detail/PoolImpl.h>
#include <zypp/sat/SolvableSpec.h>
#include <zypp/sat/Transaction.h>
#include <zypp-core/base/String.h>
#include <zypp-core/base/StringV.h>
#include <zypp-core/zyppng/base/EventLoop>
#include <zypp-core/zyppng/base/UnixSignalSource>
#include <zypp-core/zyppng/io/AsyncDataSource>
#include <zypp-core/zyppng/io/Process>
#include <zypp-core/base/IOTools.h>
#include <zypp-core/zyppng/rpc/rpc.h>
#include <zypp-core/zyppng/base/private/linuxhelpers_p.h>
#include <zypp-core/zyppng/base/EventDispatcher>
#include <zypp-proto/target/commit.pb.h>
#include <zypp-proto/core/envelope.pb.h>
#include <zypp-core/zyppng/rpc/zerocopystreams.h>
#include <zypp/target/rpm/RpmException.h>
#include <zypp/PluginExecutor.h>
#include "tools/zypp-rpm/errorcodes.h"
#include <rpm/rpmlog.h>
#include <optional>
#include <solv/repo_rpmdb.h>
#include <solv/chksum.h>

Go to the source code of this file.

Classes

struct  zypp::target::SendSingleTransReport
 Convenience SendReport<rpm::SingleTransReport> wrapper. More...
 

Namespaces

namespace  zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
namespace  zypp::target
 
namespace  zypp::json
 

Macros

#define SUBST_IF(PAT, VAL)   if ( ret.find( PAT ) != std::string::npos ) ret = str::gsub( ret, PAT, VAL )
 

Functions

std::string zypp::target::rpmDbStateHash (const Pathname &root_r)
 
RepoStatus zypp::target::rpmDbRepoStatus (const Pathname &root_r)
 
template<>
std::string zypp::json::toJSON (const ZYppCommitResult::TransactionStepList &steps_r)
 
template<>
std::string zypp::json::toJSON (const sat::Transaction::Step &step_r)
 See COMMITBEGIN (added in v1) on page Commit plugin for the specs.
 
void zypp::target::writeUpgradeTestcase ()
 
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 std::string zypp::target::generateRandomId ()
 generates a random id using uuidgen
 
void zypp::target::updateFileContent (const Pathname &filename, boost::function< bool()> condition, boost::function< std::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
 

Macro Definition Documentation

◆ SUBST_IF

#define SUBST_IF (   PAT,
  VAL 
)    if ( ret.find( PAT ) != std::string::npos ) ret = str::gsub( ret, PAT, VAL )

Variable Documentation

◆ _mountpoint

Pathname _mountpoint
protected

Definition at line 263 of file TargetImpl.cc.

◆ _guard

TrueBool _guard

Definition at line 1596 of file TargetImpl.cc.

◆ _result

ZYppCommitResult& _result

Definition at line 1597 of file TargetImpl.cc.