libzypp 17.37.10

Applydeltarpm.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_SOURCE_APPLYDELTARPM_H
13#define ZYPP_SOURCE_APPLYDELTARPM_H
14
15#include <iosfwd>
16#include <string>
17
18#include <zypp/base/Function.h>
19#include <zypp/Pathname.h>
20
22 namespace zypp
23{
24
27 namespace applydeltarpm
28 {
29
31 bool haveApplydeltarpm();
32
37
40 bool check( const std::string & sequenceinfo_r, bool quick_r = false );
41
45 bool check( const Pathname & delta_r, bool quick_r = false );
46
48 inline bool quickcheck( const std::string & sequenceinfo_r )
49 { return check( sequenceinfo_r, true ); }
50
52 inline bool quickcheck( const Pathname & delta_r )
53 { return check( delta_r, true ); }
54
55
60
61 using Progress = function<void (unsigned int)>;
62
66 bool provide( const Pathname & delta_r, const Pathname & new_r,
67 const Progress & report_r = Progress() );
68
72 bool provide( const Pathname & old_r, const Pathname & delta_r,
73 const Pathname & new_r,
74 const Progress & report_r = Progress() );
76
78 } // namespace applydeltarpm
81} // namespace zypp
83#endif // ZYPP_SOURCE_APPLYDELTARPM_H
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zypp::applydeltarpm
Namespace wrapping invocations of /usr/bin/applydeltarpm.
Definition Applydeltarpm.cc:30
zypp::applydeltarpm::haveApplydeltarpm
bool haveApplydeltarpm()
Test whether an execuatble applydeltarpm program is available.
Definition Applydeltarpm.cc:69
zypp::applydeltarpm::Progress
function< void(unsigned int)> Progress
progress reporting
Definition Applydeltarpm.h:61
zypp::applydeltarpm::provide
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.
Definition Applydeltarpm.cc:133
zypp::applydeltarpm::quickcheck
bool quickcheck(const std::string &sequenceinfo_r)
Quick via check sequence info.
Definition Applydeltarpm.h:48
zypp::applydeltarpm::check
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.
Definition Applydeltarpm.cc:93
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
Pathname.h
Function.h