Class: Y2Packager::Clients::InstProductLicense

Inherits:
Object
  • Object
show all
Includes:
Yast::I18n, Yast::Logger
Defined in:
src/lib/y2packager/clients/inst_product_license.rb,
src/lib/y2packager/clients/inst_product_license.rb

Overview

This client shows a license confirmation dialog for the base selected product

The client will be skipped (returning `:auto` or `:next`) in these situations:

  • There is no license available for the selected base product.

  • Running AutoYaST but the license has been already confirmed.

  • Running a normal installation but there is only 1 base product (not a multi-product media at all). In that case, the license is supposed to has been already confirmed in the welcome screen.

Direct Known Subclasses

InstProductUpgradeLicense

Instance Method Summary collapse

Instance Method Details

#mainObject


31
32
33
34
35
# File 'src/lib/y2packager/clients/inst_product_license.rb', line 31

def main
  textdomain "installation"
  return :auto unless multi_product_media? && available_license?
  Y2Packager::Dialogs::InstProductLicense.new(product).run
end