Method: Yast::PackageClass#CheckAndInstallPackagesInteractive
- Defined in:
- library/packages/src/modules/Package.rb
#CheckAndInstallPackagesInteractive(packages) ⇒ Boolean
Check if packages are installed
Install them if they are not and user approves installation If installation fails (or wasn't allowed), ask user if he wants to continue
before or user decided to continue, false otherwise
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'library/packages/src/modules/Package.rb', line 165 def CheckAndInstallPackagesInteractive(packages) success = CheckAndInstallPackages(packages) return true if success if !LastOperationCanceled() if Mode.commandline # error report Report.Error(_("Installing required packages failed.")) else Popup.ContinueCancel( # continue/cancel popup _( "Installing required packages failed. If you continue\n" \ "without installing required packages,\n" \ "YaST may not work properly.\n" ) ) end elsif Mode.commandline Report.Error( # error report _("Cannot continue without installing required packages.") ) else Popup.ContinueCancel( # continue/cancel popup _( "If you continue without installing required \npackages, YaST may not work properly.\n" ) ) end end |