Hello community, here is the log from the commit of package yast2-add-on for openSUSE:Factory checked in at 2019-10-16 09:09:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-add-on (Old) and /work/SRC/openSUSE:Factory/.yast2-add-on.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-add-on" Wed Oct 16 09:09:53 2019 rev:102 rq:737418 version:4.2.8 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-add-on/yast2-add-on.changes 2019-10-03 14:06:17.112590225 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-add-on.new.2352/yast2-add-on.changes 2019-10-16 09:09:53.296302145 +0200 @@ -1,0 +2,7 @@ +Fri Oct 11 08:30:27 UTC 2019 - Ladislav Slezák <[email protected]> + +- Display the human readable product names in the summary dialog + (bsc#1153663) +- 4.2.8 + +------------------------------------------------------------------- Old: ---- yast2-add-on-4.2.7.tar.bz2 New: ---- yast2-add-on-4.2.8.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-add-on.spec ++++++ --- /var/tmp/diff_new_pack.KPzSTd/_old 2019-10-16 09:09:54.096300083 +0200 +++ /var/tmp/diff_new_pack.KPzSTd/_new 2019-10-16 09:09:54.100300072 +0200 @@ -17,7 +17,7 @@ Name: yast2-add-on -Version: 4.2.7 +Version: 4.2.8 Release: 0 Summary: YaST2 - Add-On media installation code License: GPL-2.0-only ++++++ yast2-add-on-4.2.7.tar.bz2 -> yast2-add-on-4.2.8.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-add-on-4.2.7/package/yast2-add-on.changes new/yast2-add-on-4.2.8/package/yast2-add-on.changes --- old/yast2-add-on-4.2.7/package/yast2-add-on.changes 2019-09-30 16:37:54.000000000 +0200 +++ new/yast2-add-on-4.2.8/package/yast2-add-on.changes 2019-10-11 10:43:58.000000000 +0200 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Fri Oct 11 08:30:27 UTC 2019 - Ladislav Slezák <[email protected]> + +- Display the human readable product names in the summary dialog + (bsc#1153663) +- 4.2.8 + +------------------------------------------------------------------- Mon Sep 30 07:50:24 UTC 2019 - Ladislav Slezák <[email protected]> - Automatically offer the modules and extensions in the offline diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-add-on-4.2.7/package/yast2-add-on.spec new/yast2-add-on-4.2.8/package/yast2-add-on.spec --- old/yast2-add-on-4.2.7/package/yast2-add-on.spec 2019-09-30 16:37:54.000000000 +0200 +++ new/yast2-add-on-4.2.8/package/yast2-add-on.spec 2019-10-11 10:43:58.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-add-on -Version: 4.2.7 +Version: 4.2.8 Release: 0 Summary: YaST2 - Add-On media installation code License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-add-on-4.2.7/src/include/add-on/add-on-workflow.rb new/yast2-add-on-4.2.8/src/include/add-on/add-on-workflow.rb --- old/yast2-add-on-4.2.7/src/include/add-on/add-on-workflow.rb 2019-09-30 16:37:54.000000000 +0200 +++ new/yast2-add-on-4.2.8/src/include/add-on/add-on-workflow.rb 2019-10-11 10:43:58.000000000 +0200 @@ -16,6 +16,7 @@ # require "y2packager/medium_type" +require "y2packager/resolvable" module Yast module AddOnAddOnWorkflowInclude @@ -801,12 +802,7 @@ ) Item( Id(index), - Ops.get_string( - # sformat (_("Product %1"), product["product"]:"") - product, - "product", - "" - ), + product_label(product["product"]), media ) end @@ -1924,5 +1920,18 @@ log.debug "TypeDialog result: #{ret}" ret end + + private + + # Find the human readable product name for the product ID + # @param product [String] the product name (ID) + # @return [String] a human readable product name or the original ID if not found + def product_label(product) + selected_product = Y2Packager::Resolvable.find( + kind: :product, status: :selected, name: product).first + + # fallback to the internal product name + selected_product&.display_name || product + end end end
