Class: Y2Packager::Clients::InstRepositoriesInitialization

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

Overview

Client to initialize software repositories

It is intended to be used before the inst_complex_welcome client. If more than one product is available in the installation media, unselects all of them (the user should set a product later).

See Also:

  • #adjust_base_product_selection

Instance Method Summary collapse

Instance Method Details

#mainObject

Client main method


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'src/lib/y2packager/clients/inst_repositories_initialization.rb', line 37

def main
  textdomain "installation"

  if !init_installation_repositories
    Yast::Popup.Error(
      _("Failed to initialize the software repositories.\nAborting the installation.")
    )
    return :abort
  end

  if products.empty?
    Yast::Popup.Error(
      _("Unable to find base products to install.\nAborting the installation.")
    )
    return :abort
  end

  adjust_base_product_selection
  :next
end