Method: Yast::PackageClass#CheckAndInstallPackages

Defined in:
library/packages/src/modules/Package.rb

#CheckAndInstallPackages(packages) ⇒ Boolean

Check if packages are installed

Install them if they are not and user approves installation

false otherwise

Parameters:

  • packages (Array<String>)

    list of packages to check (and install)

Returns:

  • (Boolean)

    true if installation succeeded or packages were installed,



149
150
151
152
153
154
# File 'library/packages/src/modules/Package.rb', line 149

def CheckAndInstallPackages(packages)
  return true if Mode.config || Stage.initial
  return true if InstalledAll(packages)

  InstallAll(packages)
end