3 %rename("dryRun=") ZYppCommitPolicy::dryRun(bool);
4 %rename("rpmNoSignature=") ZYppCommitPolicy::rpmNoSignature(bool);
5 %rename("syncPoolAfterCommit=") ZYppCommitPolicy::syncPoolAfterCommit(bool);
12 : _restrictToMedia ( 0 )
14 , _rpmNoSignature ( false )
15 , _syncPoolAfterCommit( true )
19 unsigned restrictToMedia() const
20 { return _restrictToMedia; }
25 bool rpmNoSignature() const
26 { return _rpmNoSignature; }
28 bool syncPoolAfterCommit() const
29 { return _syncPoolAfterCommit; }
32 /** Restrict commit to a certain media number
35 ZYppCommitPolicy & restrictToMedia( unsigned mediaNr_r )
36 { _restrictToMedia = mediaNr_r; return *this; }
38 /** Process all media (default) */
39 ZYppCommitPolicy & allMedia()
40 { return restrictToMedia( 0 ); }
42 /** Set dry run (default: false) */
43 ZYppCommitPolicy & dryRun( bool yesNo_r = true )
44 { _dryRun = yesNo_r; return *this; }
46 /** Use rpm option --nosignature (default: false) */
47 ZYppCommitPolicy & rpmNoSignature( bool yesNo_r = true )
48 { _rpmNoSignature = yesNo_r; return *this; }
50 /** Kepp pool in sync with the Target databases after commit (default: true) */
51 ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r = true )
52 { _syncPoolAfterCommit = yesNo_r; return *this; }
55 unsigned _restrictToMedia;
58 bool _syncPoolAfterCommit;