Bug 445476

Summary: YaST installs unrelated packages
Product: [openSUSE] openSUSE 11.1 Reporter: Jan Kupec <jkupec>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P2 - High CC: jsmeix, mls
Version: Beta 5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast logs

Description Jan Kupec 2008-11-16 11:26:16 UTC
When running the ftp server module for the first time, i selected vsftpd. Since the package has not been installed, the module went on to install it, but installed a whole lot of unrelated packages along.

This is most probably caused by the ignorealreadyrecommended solver flag not set:

2008-11-16 12:02:11 <1> kompost(20806) [zypp] Resolver.cc(solverInit):260 -------------- Calling SAT Solver -------------------
....
2008-11-16 12:02:11 <1> kompost(20806) [zypp] SATResolver.cc(resolvePool):665 Install U_Th_(15285)vsftpd-2.0.7-4.18.x86_64(factory)
....
2008-11-16 12:02:11 <1> kompost(20806) [zypp] SATResolver.cc(solving):454   ignorealreadyrecommended = 0

Lado, please check what is needed to do so that the solver is called with this flag enabled in order to install needed packages. Maybe a change in the pkg-bindings is only needed, maybe the individual modules need to add a call to set the flag.
Comment 1 Jan Kupec 2008-11-16 11:30:27 UTC
Created attachment 252493 [details]
yast logs
Comment 2 Ladislav Slezák 2008-12-03 12:52:54 UTC
Fixed in yast2-pkg-bindings-2.17.30 and yast2-2.17.55 - there is a new function Pkg::Solve() which takes an option map as argument. PackageSystem::DoInstallAndRemove() calls Pkg::Solve() with "ignoreAlreadyRecommended" option set to 'true'.
Comment 3 Ladislav Slezák 2008-12-03 12:54:06 UTC
So it's fixed only in this case, all other solver runs are not affected to not break something.