zypp::applydeltarpm Namespace Reference

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


Re-create a new rpm from binary delta.

See also:
man applydeltarpm


typedef function< void(unsigned)> Progress
 progress reporting
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.
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.

Functions

const Pathname applydeltarpm_prog ("/usr/bin/applydeltarpm")
const str::regex applydeltarpm_tick ("([0-9]+) percent finished")
bool applydeltarpm (const char *const argv_r[], const Progress &report_r=Progress())
bool haveApplydeltarpm ()
 Test whether an execuatble applydeltarpm program is available.
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.
bool check (const Pathname &delta_r, bool quick_r=false)
 Check via deltarpm.
bool quickcheck (const std::string &sequenceinfo_r)
 Quick via check sequence info.
bool quickcheck (const Pathname &delta_r)
 Quick check via deltarpm.


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

const Pathname zypp::applydeltarpm::@386::applydeltarpm_prog ( "/usr/bin/applydeltarpm"   )  [static]

Referenced by haveApplydeltarpm().

const str::regex zypp::applydeltarpm::@386::applydeltarpm_tick ( "([0-9]+) percent finished"   )  [static]

Referenced by applydeltarpm().

bool zypp::applydeltarpm::@386::applydeltarpm ( const char *const  argv_r[],
const Progress &  report_r = Progress() 
) [static]

Definition at line 42 of file Applydeltarpm.cc.

References applydeltarpm_tick(), DBG, and zypp::ExternalProgram::Stderr_To_Stdout.

Referenced by check(), and provide().

bool zypp::applydeltarpm::haveApplydeltarpm (  ) 

Test whether an execuatble applydeltarpm program is available.

Definition at line 68 of file Applydeltarpm.cc.

References applydeltarpm_prog(), MIL, and WAR.

Referenced by check(), zypp::source::PackageProvider::doProvidePackage(), and provide().

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 92 of file Applydeltarpm.cc.

References applydeltarpm(), and haveApplydeltarpm().

Referenced by quickcheck(), and zypp::source::PackageProvider::tryDelta().

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

Check via deltarpm.

See also:
applydeltarpm [-c|-C] deltarpm

Definition at line 112 of file Applydeltarpm.cc.

References applydeltarpm(), and haveApplydeltarpm().

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 132 of file Applydeltarpm.cc.

References applydeltarpm(), haveApplydeltarpm(), zypp::AutoDispose< _Tp >::resetDispose(), and zypp::filesystem::unlink().

Referenced by zypp::source::PackageProvider::tryDelta().

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 161 of file Applydeltarpm.cc.

References applydeltarpm(), haveApplydeltarpm(), zypp::AutoDispose< _Tp >::resetDispose(), and zypp::filesystem::unlink().

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

Quick via check sequence info.

Definition at line 48 of file Applydeltarpm.h.

References check().

Referenced by zypp::source::PackageProvider::tryDelta().

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

Quick check via deltarpm.

Definition at line 52 of file Applydeltarpm.h.

References check().


Generated on Tue Nov 28 16:49:37 2006 for zypp by  doxygen 1.5.0