libzypp 17.31.23
ZYppCommitPolicy.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_ZYPPCOMMITPOLICY_H
13#define ZYPP_ZYPPCOMMITPOLICY_H
14
15#include <iosfwd>
16
17#include <zypp/base/PtrTypes.h>
18
19#include <zypp/DownloadMode.h>
21
23namespace zypp
24{
25
27 //
28 // CLASS NAME : ZYppCommitPolicy
29 //
34 {
35 public:
36
38
39 public:
45 ZYppCommitPolicy & restrictToMedia( unsigned mediaNr_r );
46
49 { return restrictToMedia( 0 ); }
50
51 unsigned restrictToMedia() const;
52
53
59 ZYppCommitPolicy & dryRun( bool yesNo_r );
60
61 bool dryRun() const;
62
63
68
70
71
73 ZYppCommitPolicy & rpmInstFlags( target::rpm::RpmInstFlags newFlags_r );
74
76 ZYppCommitPolicy & rpmNoSignature( bool yesNo_r );
77
79 ZYppCommitPolicy & rpmExcludeDocs( bool yesNo_r );
80
81 target::rpm::RpmInstFlags rpmInstFlags() const;
82
83 bool rpmNoSignature() const;
84
85 bool rpmExcludeDocs() const;
86
88 ZYppCommitPolicy & allowDowngrade( bool yesNo_r );
89 bool allowDowngrade() const;
90
92 ZYppCommitPolicy & replaceFiles( bool yesNo_r );
93 bool replaceFiles() const;
94
96 ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r );
97 bool syncPoolAfterCommit() const;
98
99 bool singleTransModeEnabled () const;
100
101 public:
103 class Impl;
104 private:
107 };
109
111 std::ostream & operator<<( std::ostream & str, const ZYppCommitPolicy & obj );
112
114} // namespace zypp
116#endif // ZYPP_ZYPPCOMMITPOLICY_H
RepoManager implementation.
Options and policies for ZYpp::commit.
bool singleTransModeEnabled() const
DownloadMode downloadMode() const
target::rpm::RpmInstFlags rpmInstFlags() const
unsigned restrictToMedia() const
bool syncPoolAfterCommit() const
RWCOW_pointer< Impl > _pimpl
Pointer to data.
ZYppCommitPolicy & allMedia()
Process all media (default)
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition: SerialNumber.cc:52
DownloadMode
Supported commit download policies.
Definition: DownloadMode.h:23
RW_pointer supporting 'copy on write' functionality.
Definition: PtrTypes.h:459