[yast-commit] r61047 - in /trunk/packager: package/yast2-packager.changes src/modules/ProductLicense.ycp
Author: locilka Date: Fri Feb 26 14:53:43 2010 New Revision: 61047 URL: http://svn.opensuse.org/viewcvs/yast?rev=61047&view=rev Log: - Calling ProductLicense cleanup before leaving the license dialog (BNC #581933). Modified: trunk/packager/package/yast2-packager.changes trunk/packager/src/modules/ProductLicense.ycp Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=61047&r1=61046&r2=61047&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Fri Feb 26 14:53:43 2010 @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 26 14:46:32 CET 2010 - locilka@suse.cz + +- Calling ProductLicense cleanup before leaving the license dialog + (BNC #581933). + ------------------------------------------------------------------ Thu Jan 14 13:40:25 UTC 2010 - lslezak@suse.cz Modified: trunk/packager/src/modules/ProductLicense.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/ProductLicense.ycp?rev=61047&r1=61046&r2=61047&view=diff ============================================================================== --- trunk/packager/src/modules/ProductLicense.ycp (original) +++ trunk/packager/src/modules/ProductLicense.ycp Fri Feb 26 14:53:43 2010 @@ -963,6 +963,15 @@ } /** + * Generic cleanup + */ +void CleanUp() { + // BNC #581933: All license IDs are cached while the module is in memory. + // Removing them when leaving the license dialog. + license_ids = []; +} + +/** * Ask user to confirm license agreement * @param src_id integer repository to get the license from. * If set to 'nil', the license is considered to belong to a base product @@ -1035,6 +1044,8 @@ Wizard::CloseDialog(); } + CleanUp(); + return ret; } @@ -1158,6 +1169,8 @@ Wizard::CloseDialog(); } + CleanUp(); + return ret; } @@ -1221,6 +1234,8 @@ } } + CleanUp(); + return true; } @@ -1250,6 +1265,8 @@ } } + CleanUp(); + return true; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org