Author: mlandres Date: Wed Sep 12 18:36:18 2007 New Revision: 7219 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7219&view=rev Log: If switching to UI status S_Update, tag the installed item as to be deleted by SOLVER (unless installOnly is set). This way we will get a better disk usage result, even if no autosolving is on. The next solver run will reset and recompute this setting anyway. Modified: trunk/libzypp/zypp/ui/SelectableImpl.cc Modified: trunk/libzypp/zypp/ui/SelectableImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ui/SelectableImpl.cc?rev=7219&r1=7218&r2=7219&view=diff ============================================================================== --- trunk/libzypp/zypp/ui/SelectableImpl.cc (original) +++ trunk/libzypp/zypp/ui/SelectableImpl.cc Wed Sep 12 18:36:18 2007 @@ -94,7 +94,15 @@ { if ( inst ) { inst.status().setTransact( false, ResStatus::USER ); - inst.status().setLock( false, ResStatus::USER ); + inst.status().setLock ( false, ResStatus::USER ); + if ( ! cand->installOnly() ) + { + // This is what the solver most probabely will do. + // If we are wrong the solver will correct it. But + // this way we will get a better disk usage result, + // even if no autosolving is on. + inst.status().setTransact( true, ResStatus::SOLVER ); + } } unlockCandidates(); return cand.status().setTransact( true, ResStatus::USER ); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org