Class: Yast::InstDoitClient

Inherits:
Client
  • Object
show all
Defined in:
src/lib/installation/clients/inst_doit.rb

Overview

Asks user to really do the installation/update.

Instance Method Summary collapse

Instance Method Details

#mainObject



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'src/lib/installation/clients/inst_doit.rb', line 25

def main
  Yast.import "UI"
  textdomain "installation"

  Yast.import "Wizard"
  Yast.import "Mode"
  Yast.import "AutoinstConfig"
  Yast.import "PackagesUI"

  Yast.import "Label"

  Yast.include self, "installation/misc.rb"

  return :next if Mode.autoinst && !AutoinstConfig.Confirm

  # old functionality replaced with this function-call
  # bugzilla #256627
  PackagesUI.ConfirmLicenses

  # function in installation/misc.ycp
  # bugzilla #219097
  @confirmed = confirmInstallation

  if @confirmed
    Builtins.y2milestone(
      "User confirmed %1",
      Mode.update ? "update" : "installation"
    )

    Wizard.SetContents(
      # TRANSLATORS: dialog caption
      _("Installation - Warming Up"),
      VBox(
        # TRANSLATORS: starting the installation process
        # dialog cotent (progress information)
        Label(_("Starting Installation..."))
      ),
      # TRANSLATORS: dialog help
      _("<p>Installation is just about to start!</p>"),
      false,
      false
    )

    # Log all information about the installation/update
    ::Installation::InstallationInfo.instance.write(
      Mode.update ? "Starting update" : "Starting installation"
    )
  end

  @confirmed ? :next : :back
end