![](https://seccdn.libravatar.org/avatar/1a5a039cbdb74b7bb361ba2e9d30cb91.jpg?s=120&d=mm&r=g)
Author: mlandres Date: Wed Apr 23 22:59:01 2008 New Revision: 9807 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9807&view=rev Log: backup Modified: trunk/libzypp/zypp/pool/PoolImpl.h Modified: trunk/libzypp/zypp/pool/PoolImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/pool/PoolImpl.h?rev=9807&r1=9806&r2=9807&view=diff ============================================================================== --- trunk/libzypp/zypp/pool/PoolImpl.h (original) +++ trunk/libzypp/zypp/pool/PoolImpl.h Wed Apr 23 22:59:01 2008 @@ -138,6 +138,16 @@ // /////////////////////////////////////////////////////////////////// public: + bool hardLockAppliesTo( sat::Solvable solv_r ) const + { + return false; + } + + bool softLockAppliesTo( sat::Solvable solv_r ) const + { + return false; + } + const ContainerT & store() const { checkSerial(); @@ -165,6 +175,15 @@ { // new PoolItem to add pi = PoolItem::makePoolItem( s ); // the only way to create a new one! + // and a few checks... + if ( hardLockAppliesTo( s ) ) + { + pi.status().setLock( true, ResStatus::USER ); + } + else if ( softLockAppliesTo( s ) ) + { + pi.status().setSoftLock( ResStatus::USER ); + } } } } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org