Skip to content

Commit

Permalink
return error message if base product not found and continue in instal…
Browse files Browse the repository at this point in the history
…lation(bnc#873458)
  • Loading branch information
jreidinger committed Apr 14, 2014
1 parent 48086ab commit 7f25fae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/clients/inst_prepareprogress.rb
Expand Up @@ -41,14 +41,21 @@ def main
Yast.import "PackageSlideShow"
Yast.import "Wizard"
Yast.import "InstData"
Yast.import "Popup"
Yast.import "Product"

Builtins.y2milestone("BEGIN of inst_prepareprogress.ycp")

# hide the RN button and set the release notes for SlideShow (bnc#871158)
Wizard.HideReleaseNotesButton
base_products = Product.FindBaseProducts
SlideShow.SetReleaseNotes(InstData.release_notes, base_products[0]["name"])
if !base_products || base_products.empty?
Builtins.y2error "base product not found"
Popup.error "Cannot find base product. Release notes won't be shown."
SlideShow.SetReleaseNotes(InstData.release_notes, "")
else
SlideShow.SetReleaseNotes(InstData.release_notes, base_products[0]["name"])
end

Packages.SlideShowSetUp(Language.language)

Expand Down

0 comments on commit 7f25fae

Please sign in to comment.