libzypp  13.10.6
zypp::applydeltarpm Namespace Reference

Namespace wrapping invocations of /usr/bin/applydeltarpm. More...

Functions

bool haveApplydeltarpm ()
 Test whether an execuatble applydeltarpm program is available. More...
 
Check if reconstruction of rpm is possible.
See Also
man applydeltarpm
bool check (const std::string &sequenceinfo_r, bool quick_r=false)
 Check via sequence info. More...
 
bool check (const Pathname &delta_r, bool quick_r=false)
 Check via deltarpm. More...
 
bool quickcheck (const std::string &sequenceinfo_r)
 Quick via check sequence info. More...
 
bool quickcheck (const Pathname &delta_r)
 Quick check via deltarpm. More...
 

Re-create a new rpm from binary delta.

See Also
man applydeltarpm
typedef function< void(unsigned)> Progress
 progress reporting More...
 
bool provide (const Pathname &delta_r, const Pathname &new_r, const Progress &report_r=Progress())
 Apply a binary delta to on-disk data to re-create a new rpm. More...
 
bool provide (const Pathname &old_r, const Pathname &delta_r, const Pathname &new_r, const Progress &report_r=Progress())
 Apply a binary delta to an old rpm to re-create a new rpm. More...
 

Detailed Description

Namespace wrapping invocations of /usr/bin/applydeltarpm.

Typedef Documentation

typedef function<void( unsigned )> zypp::applydeltarpm::Progress

progress reporting

Definition at line 61 of file Applydeltarpm.h.

Function Documentation

bool zypp::applydeltarpm::haveApplydeltarpm ( )

Test whether an execuatble applydeltarpm program is available.

Definition at line 69 of file Applydeltarpm.cc.

bool zypp::applydeltarpm::check ( const std::string &  sequenceinfo_r,
bool  quick_r = false 
)

Check via sequence info.

See Also
applydeltarpm [-c|-C] -s sequence

Definition at line 93 of file Applydeltarpm.cc.

bool zypp::applydeltarpm::check ( const Pathname &  delta_r,
bool  quick_r = false 
)

Check via deltarpm.

See Also
applydeltarpm [-c|-C] deltarpm

Definition at line 113 of file Applydeltarpm.cc.

bool zypp::applydeltarpm::provide ( const Pathname &  delta_r,
const Pathname &  new_r,
const Progress &  report_r = Progress() 
)

Apply a binary delta to on-disk data to re-create a new rpm.

See Also
applydeltarpm deltarpm newrpm

Definition at line 133 of file Applydeltarpm.cc.

bool zypp::applydeltarpm::provide ( const Pathname &  old_r,
const Pathname &  delta_r,
const Pathname &  new_r,
const Progress &  report_r = Progress() 
)

Apply a binary delta to an old rpm to re-create a new rpm.

See Also
applydeltarpm -r oldrpm deltarpm newrpm

Definition at line 162 of file Applydeltarpm.cc.

bool zypp::applydeltarpm::quickcheck ( const std::string &  sequenceinfo_r)
inline

Quick via check sequence info.

Definition at line 48 of file Applydeltarpm.h.

bool zypp::applydeltarpm::quickcheck ( const Pathname &  delta_r)
inline

Quick check via deltarpm.

Definition at line 52 of file Applydeltarpm.h.