Author: mlandres Date: Fri Aug 8 17:11:53 2008 New Revision: 10807 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10807&view=rev Log: - Add static ui::Selectable::get methods as convenient ctor substitute. Modified: trunk/libzypp/zypp/ZYppCommitPolicy.cc trunk/libzypp/zypp/ZYppCommitPolicy.h Modified: trunk/libzypp/zypp/ZYppCommitPolicy.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZYppCommitPolicy.cc?rev=10807&r1=10806&r2=10807&view=diff ============================================================================== --- trunk/libzypp/zypp/ZYppCommitPolicy.cc (original) +++ trunk/libzypp/zypp/ZYppCommitPolicy.cc Fri Aug 8 17:11:53 2008 @@ -27,6 +27,10 @@ str << " dryRun"; if ( obj.rpmNoSignature() ) str << " rpmNoSignature"; + if ( obj.rpmExcludeDocs() ) + str << " rpmExcludeDocs"; + if ( obj.syncPoolAfterCommit() ) + str << " syncPoolAfterCommit"; return str << " )"; } Modified: trunk/libzypp/zypp/ZYppCommitPolicy.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZYppCommitPolicy.h?rev=10807&r1=10806&r2=10807&view=diff ============================================================================== --- trunk/libzypp/zypp/ZYppCommitPolicy.h (original) +++ trunk/libzypp/zypp/ZYppCommitPolicy.h Fri Aug 8 17:11:53 2008 @@ -30,6 +30,7 @@ : _restrictToMedia ( 0 ) , _dryRun ( false ) , _rpmNoSignature ( false ) + , _rpmExcludeDocs ( false ) , _syncPoolAfterCommit( true ) {} @@ -43,6 +44,9 @@ bool rpmNoSignature() const { return _rpmNoSignature; } + bool rpmExcludeDocs() const + { return _rpmExcludeDocs; } + bool syncPoolAfterCommit() const { return _syncPoolAfterCommit; } @@ -67,6 +71,10 @@ ZYppCommitPolicy & rpmNoSignature( bool yesNo_r ) { _rpmNoSignature = yesNo_r; return *this; } + /** Use rpm option --excludedocs (default: false) */ + ZYppCommitPolicy & rpmExcludeDocs( bool yesNo_r ) + { _rpmExcludeDocs = yesNo_r; return *this; } + /** Kepp pool in sync with the Target databases after commit (default: true) */ ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r ) { _syncPoolAfterCommit = yesNo_r; return *this; } @@ -75,6 +83,7 @@ unsigned _restrictToMedia; bool _dryRun; bool _rpmNoSignature; + bool _rpmExcludeDocs; bool _syncPoolAfterCommit; }; /////////////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org