35 const Pathname applydeltarpm_prog(
"/usr/bin/applydeltarpm" );
36 const str::regex applydeltarpm_tick (
"([0-9]+) percent finished" );
55 DBG <<
"Applydeltarpm : " << line;
57 return( prog.
close() == 0 );
72 static TriBool _last = indeterminate;
74 bool have = prog.
isX();
81 MIL <<
"Found executable " << prog << endl;
83 WAR <<
"No executable " << prog << endl;
85 return (
bool ) _last;
93 bool check(
const std::string & sequenceinfo_r,
bool quick_r )
98 const char *
const argv[] = {
99 "/usr/bin/applydeltarpm",
100 ( quick_r ?
"-C" :
"-c" ),
101 "-s", sequenceinfo_r.c_str(),
118 const char *
const argv[] = {
119 "/usr/bin/applydeltarpm",
120 ( quick_r ?
"-C" :
"-c" ),
142 const char *
const argv[] = {
143 "/usr/bin/applydeltarpm",
173 const char *
const argv[] = {
174 "/usr/bin/applydeltarpm",
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
void resetDispose()
Set no dispose function.
Execute a program and give access to its io An object of this class encapsulates the execution of an ...
int close() override
Wait for the progamm to complete.
std::string receiveLine()
Read one line from the input stream.
Wrapper class for stat/lstat.
Pathname dirname() const
Return all but the last component od this path.
const std::string & asString() const
String representation.
Regular expression match result.
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
Namespace wrapping invocations of /usr/bin/applydeltarpm.
bool haveApplydeltarpm()
Test whether an execuatble applydeltarpm program is available.
function< void(unsigned int)> Progress
progress reporting
bool provide(const Pathname &delta_r, const Pathname &new_r, const Progress &report_r)
Apply a binary delta to on-disk data to re-create a new rpm.
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.
int unlink(const Pathname &path)
Like 'unlink'.
int assert_dir(const Pathname &path, unsigned mode)
Like 'mkdir -p'.
bool regex_match(const std::string &s, smatch &matches, const regex ®ex)
\relates regex \ingroup ZYPP_STR_REGEX \relates regex \ingroup ZYPP_STR_REGEX
TInt strtonum(const C_Str &str)
Parsing numbers from string.
Easy-to use interface to the ZYPP dependency resolver.