Skip to content

Commit

Permalink
add product update summary to proposal (jsc#PED-3773)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 16, 2024
1 parent a2b7b51 commit 9814295
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/clients/update_proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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| "<li>#{item}</li>" }.join
product_info = "<li>" + format(
_("Updating %{product} on root %{partition}"),
product: RootPart.GetInfoOfSelected(:name),
partition: RootPart.selectedRootPartition
) + "</li>"

summary_text = product_info + summary_text

# recalculate the disk space usage data
SpaceCalculation.GetPartitionInfo
Expand All @@ -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
Expand Down

0 comments on commit 9814295

Please sign in to comment.