Bug 457563

Summary: Software Manager doesn't save locked status when no upgrades are applied
Product: [openSUSE] openSUSE 11.1 Reporter: Enno Borgsteede <ennoborg>
Component: YaST2Assignee: Forgotten User h13THG8RK1 <forgotten_h13THG8RK1>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: forgotten_h13THG8RK1, michael.meeks
Version: RC 1   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Y2 logs as required

Description Enno Borgsteede 2008-12-09 10:56:23 UTC
When I start the Software Manager and find that none of the recommended Upgrades are useful (like when the conflict when non-OSS codecs) I can set all to locked, but there is no way to save that state, because the Apply button is not enabled.

When I close the window there is a popup telling me that Changes are not saved, but again there is no way to save those locks. I can choose either Quit or cancel, but there is no visible way to apply the locks.

The only way to save them seems to be to make some other change that enables the Apply button. When I do that, the locks do appear next time.
Comment 1 Alexander Orlovskyy 2008-12-10 11:14:44 UTC
Please provide y2logs
More info on http://en.opensuse.org/Bugs/YaST
Comment 2 Enno Borgsteede 2008-12-10 13:12:57 UTC
Created attachment 259160 [details]
Y2 logs as required

Reading the y2log myself, I found the 1st attempt to lock here:

2008-12-09 11:48:30 <1> linux-436k(4563) [zypp] SATResolver.cc(setLocks):1294 Lock installed item I_Lu_(298)gstreamer-0_10-schroedinger-1.0.5-0.pm.4.i586(@System)

These are all the locks I set before trying to exit the Software Manager:

2008-12-09 11:48:37 <1> linux-436k(4563) [zypp] SATResolver.cc(setLocks):1294 Lock installed item I_Lu_(298)gstreamer-0_10-schroedinger-1.0.5-0.pm.4.i586(@System)
2008-12-09 11:48:37 <1> linux-436k(4563) [zypp] SATResolver.cc(setLocks):1294 Lock installed item I_Lu_(576)libschroedinger-1_0-0-1.0.5-0.pm.4.i586(@System)
2008-12-09 11:48:37 <1> linux-436k(4563) [zypp] SATResolver.cc(setLocks):1294 Lock installed item I_Lu_(656)mjpegtools-1.9.0rc3-0.pm.1.i586(@System)

And here's where I closed it with Cancel, because Apply was not enabled:

2008-12-09 11:49:09 <1> linux-436k(4563) [gtk] YGPackageSelector.cc(wizard_action_cb):2731 Closing PackageSelector with 'cancel'

To enable the Apply button, I installed songbird:

2008-12-09 11:51:13 <1> linux-436k(4563) [zypp] SATResolver.cc(resolvePool):676 Delete I_Tu_(857)songbird-1.0.0-0.pm.1.i586(@System)

I hope this helps a bit ...
Comment 3 Enno Borgsteede 2008-12-10 13:20:09 UTC
When I UNlock the 3 items mentioned above, a similar thing happens. The Apply button is not enabled, and when I Cancel the Software Manager there is NO warning about unsaved changes. When I start it again, the locks are still there.
Comment 4 Michael Andres 2008-12-11 12:54:48 UTC
Yes, if the UI does not call commit, the changes are not saved.
Comment 5 Forgotten User h13THG8RK1 2008-12-12 01:23:05 UTC
Nice catch. The Apply button code was connected to the Changes bar, so it only enabled the button on any package status change. We'll enable it for any change at all for now on. This won't get to OpenSuse 11.1 unfortunately; maybe SLED 11.1.