Bug 380652

Summary: repo manager flickering
Product: [openSUSE] openSUSE 11.0 Reporter: Stephan Kulow <coolo>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: forgotten_OfsFetVrzR
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stephan Kulow 2008-04-17 06:04:28 UTC
if you call yast2 lan with qt, there will be several `defaultsize windows opened and closed shortly after each other. I guess this is due latest callback changes, but I'm not sure.

Same for live-installer
Comment 1 Ladislav Slezák 2008-04-17 09:23:06 UTC
The problem is in Product.ycp - to get the installed (satisfied) product you have to call the solver. To compute the status of the products the target and sources must be initialized and loaded -> full package manager must be started.

The callbacks display progress of loading the resolvables. The progress can be disabled, but that's not the best solution IMO.

Every usage of Product.ycp starts the package manager, we should avoid that!

Product.ycp could cache the product name in a file so the package manager start would be required just once.
Comment 2 Ladislav Slezák 2008-04-17 09:35:14 UTC
Or the cache could be created during installation.

But the problem would be invalidating the cache after update (e.g. from GM to SP1).
Comment 3 Ladislav Slezák 2008-04-18 08:37:33 UTC
And another soltuion is to change the access to the Product.ycp variables through functions, but that will cause incompatibilities in YCP scripts...
Comment 4 Stephan Kulow 2008-04-18 17:54:02 UTC
*** Bug 381456 has been marked as a duplicate of this bug. ***
Comment 5 Ladislav Slezák 2008-04-21 13:40:56 UTC
I'll fix Product.ycp to read /etc/SuSE-release if possible, that would avoid using the package manager completely.
Comment 6 Ladislav Slezák 2008-04-23 11:22:46 UTC
Fixed in yast2-2.16.55.