Author: jsuchome Date: Wed Jun 6 12:54:42 2007 New Revision: 38307 URL: http://svn.opensuse.org/viewcvs/yast?rev=38307&view=rev Log: - remember the packages selected for reinstallation (#278512) - 2.15.7 Modified: trunk/repair/VERSION trunk/repair/package/yast2-repair.changes trunk/repair/src/OSRCommon.ycp trunk/repair/src/OSRPkgUI.ycp trunk/repair/src/OSRPopup.ycp Modified: trunk/repair/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/VERSION?rev=38307&r1=38306&r2=38307&view=diff ============================================================================== --- trunk/repair/VERSION (original) +++ trunk/repair/VERSION Wed Jun 6 12:54:42 2007 @@ -1 +1 @@ -2.15.6 +2.15.7 Modified: trunk/repair/package/yast2-repair.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/package/yast2-repair.changes?rev=38307&r1=38306&r2=38307&view=diff ============================================================================== --- trunk/repair/package/yast2-repair.changes (original) +++ trunk/repair/package/yast2-repair.changes Wed Jun 6 12:54:42 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Jun 6 12:53:50 CEST 2007 - jsuchome@suse.cz + +- remember the packages selected for reinstallation (#278512) +- 2.15.7 + +------------------------------------------------------------------- Fri May 25 13:30:04 CEST 2007 - jsrain@suse.cz - removed outdated translations from .desktop-files (#271209) Modified: trunk/repair/src/OSRCommon.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/src/OSRCommon.ycp?rev=38307&r1=38306&r2=38307&view=diff ============================================================================== --- trunk/repair/src/OSRCommon.ycp (original) +++ trunk/repair/src/OSRCommon.ycp Wed Jun 6 12:54:42 2007 @@ -63,7 +63,12 @@ return []; } - +/** + * @return [] + */ +global define list EmptyListWithParam (list param) { + return []; +} // --------------------------------------------------------------------- // from OSRDirect.ycp: Modified: trunk/repair/src/OSRPkgUI.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/src/OSRPkgUI.ycp?rev=38307&r1=38306&r2=38307&view=diff ============================================================================== --- trunk/repair/src/OSRPkgUI.ycp (original) +++ trunk/repair/src/OSRPkgUI.ycp Wed Jun 6 12:54:42 2007 @@ -684,10 +684,18 @@ return item_list; } - global define list ProtocolDialog()``{ + /** + * Show the detailed list of packages that failed to be verified, together with + * rpm -V output. User can review the errors and choose the packages to reinstall. + * @param selected packages selected for reinstallation in the selection box + * @return packages that are selected for reinstallation + */ + global define list ProtocolDialog (list selected) { protocol_mode = true; + packages_to_reinstall = selected; + UI::OpenDialog( get_verify_dialog() ); symbol ret = `next; Modified: trunk/repair/src/OSRPopup.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/src/OSRPopup.ycp?rev=38307&r1=38306&r2=38307&view=diff ============================================================================== --- trunk/repair/src/OSRPopup.ycp (original) +++ trunk/repair/src/OSRPopup.ycp Wed Jun 6 12:54:42 2007 @@ -508,7 +508,7 @@ foreach ( list special_button, special_buttons_list, ``{ special_buttons = add( special_buttons, special_button[0]:`Empty()); special_symbol_to_action[special_button[1]:`empty] = - special_button[2]:OSRCommon::EmptyList; + special_button[2]:OSRCommon::EmptyListWithParam; }); term multi_box_with_text = `VBox(`Left(`Label(message_top )), `VSpacing(1), @@ -546,9 +546,11 @@ // eval special button action define. if ( haskey( special_symbol_to_action, ret )) { - list () f =special_symbol_to_action[ret]:OSRCommon::EmptyList; + list selected_for_reinstall = (list) + UI::QueryWidget (`id(`selection_box), `SelectedItems); + list (list) f =special_symbol_to_action[ret]:OSRCommon::EmptyListWithParam; UI::ReplaceWidget(`id(`rp), - build_multi_box(box_headline, (list<list>) f())); + build_multi_box(box_headline, (list<list>) f(selected_for_reinstall))); } } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org