From 981429523e5af24dfd219124e0cb8db7226a0199 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Tue, 16 Jan 2024 10:55:13 +0100 Subject: [PATCH] add product update summary to proposal (jsc#PED-3773) --- src/clients/update_proposal.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/clients/update_proposal.rb b/src/clients/update_proposal.rb index 1f6570c..2586c3c 100644 --- a/src/clients/update_proposal.rb +++ b/src/clients/update_proposal.rb @@ -187,8 +187,15 @@ def main products = Y2Packager::Resolvable.find(kind: :product) # stores the proposal text output - @summary_text = Packages.product_update_summary(products) + summary_text = Packages.product_update_summary(products) .map { |item| "
  • #{item}
  • " }.join + product_info = "
  • " + format( + _("Updating %{product} on root %{partition}"), + product: RootPart.GetInfoOfSelected(:name), + partition: RootPart.selectedRootPartition + ) + "
  • " + + summary_text = product_info + summary_text # recalculate the disk space usage data SpaceCalculation.GetPartitionInfo @@ -203,7 +210,7 @@ def main @ret = { "preformatted_proposal" => Ops.add( - Ops.add(HTML.ListStart, @summary_text), + Ops.add(HTML.ListStart, summary_text), HTML.ListEnd ), "help" => @update_options_help