Bug 336934

Summary: Software Manager applet opens in Search mode instead of Patterns when exectued from Add-on function
Product: [openSUSE] openSUSE 11.0 Reporter: Alex Tsariounov <alext>
Component: YaST2Assignee: Lukas Ocilka <locilka>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P3 - Medium CC: ihno
Version: Alpha 2   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.0   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 337451    

Description Alex Tsariounov 2007-10-25 21:50:15 UTC
When you install an add-on product (SLERT10SP1 for example), the Add-On YaST applet executes the Software Manager (sw_single) YaST applet as the last task.  The sw_single applet comes up with the Search screen as default.

In order for the customer to tell YaST to install any extra patterns that the Add-on may have, they first have to switch to the Patterns view by selecting Patterns from the mode pull down.  This is not intuitive for non-yast or beginner -yast users.

The sw_single applet should come up in the patterns view by default for in this case.

Thinking out loud: one could add an option to sw_single to specify which screen it puts up when you call it.  Thus, if the add-on applet calls it, then the add-on could specify Patterns.  And, if the yast control center calls it, then it could specify Search.  Just a suggestion as I'm sure there's other ways to do it.

Thanks.
Comment 2 Stefan Hundhammer 2007-10-26 09:54:44 UTC
It might as well use the real pattern selector (the prettier one with icons and longer descriptions for the currently selected pattern) rather than the low-level package selector. The (YCP) code is there, somewhere in the installation workflow. We just never got around to add yet another entry to the control center to start the pattern selector from there (also to avoid yet another entry about software there where the distinction to the others is not that obvious).
Comment 5 Lukas Ocilka 2007-11-08 09:31:44 UTC
Some improvements can be done for CODE11, backports of enhancements are implemented only if wanted by PM.
Comment 6 Lukas Ocilka 2007-11-08 09:34:56 UTC
This probably also depends on bug 337451

We don't have any environment for that yet.

BTW: for SLERT10SP1 there might be possible not to call sw_single but a special YCP script instead. That script could contain calls suggested by Stefan. Add-Ons can specify their own installation workflow, sw_single is just a fallback.
Comment 7 Lukas Ocilka 2008-09-03 08:39:05 UTC
It should be possible to use <arguments/> in control file...
Comment 8 Lukas Ocilka 2008-09-12 10:56:55 UTC
There is a code in add-ons that if an add-on contains any patterns, the package selector is opened in patterns.