387 self.__start_substage(
388 _("Ensuring %s is up to date...") % self.parent_name,
389 bounce_progress=True)
390 opensolaris_image = True
391 ips_uptodate = True
392 notfound = self.__installed_fmris_from_args(
393 ["SUNWipkg", "SUNWcs"])
394 if notfound:
395 opensolaris_image = False
396 if opensolaris_image:
397 ips_uptodate = self.__ipkg_ipkgui_uptodate()
398 if not ips_uptodate:
399 #Do the stuff with installing ipkg ipkggui and
400 #restart in the special mode
401 self.ips_update = True
402 self.__proceed_with_ipkg_thread()
403 return
404 else:
405 self.api_o.reset()
406 self.__proceed_with_stages_thread()
407 except api_errors.CertificateError:
408 self.stop_bouncing_progress = True
409 msg = _("Accessing this restricted repository failed."
410 "\nYou either need to register to access this repository,"
411 "\nthe certificate expired, or you need to accept the"
412 " repository\ncertificate.")
413 self.__g_error_stage(msg)
414 return
415 except api_errors.PlanCreationException, e:
416 self.__g_error_stage(str(e))
417 return
418 except api_errors.InventoryException, e:
419 msg = _("Inventory exception:\n")
420 if e.illegal:
421 for i in e.illegal:
422 msg += "\tpkg:\t" + i +"\n"
423 self.__g_error_stage(msg)
424 return
425 except api_errors.CatalogRefreshException, e:
426 msg = _("Please check the network "
427 "connection.\nIs the repository accessible?")
428 if e.message and len(e.message) > 0:
429 msg = e.message
430 self.__g_error_stage(msg)
431 return
432 except api_errors.TransportError, ex:
433 msg = _("Please check the network "
|
387 self.__start_substage(
388 _("Ensuring %s is up to date...") % self.parent_name,
389 bounce_progress=True)
390 opensolaris_image = True
391 ips_uptodate = True
392 notfound = self.__installed_fmris_from_args(
393 ["SUNWipkg", "SUNWcs"])
394 if notfound:
395 opensolaris_image = False
396 if opensolaris_image:
397 ips_uptodate = self.__ipkg_ipkgui_uptodate()
398 if not ips_uptodate:
399 #Do the stuff with installing ipkg ipkggui and
400 #restart in the special mode
401 self.ips_update = True
402 self.__proceed_with_ipkg_thread()
403 return
404 else:
405 self.api_o.reset()
406 self.__proceed_with_stages_thread()
407 except api_errors.CertificateError, e:
408 self.__g_error_stage(str(e))
409 return
410 except api_errors.PlanCreationException, e:
411 self.__g_error_stage(str(e))
412 return
413 except api_errors.InventoryException, e:
414 msg = _("Inventory exception:\n")
415 if e.illegal:
416 for i in e.illegal:
417 msg += "\tpkg:\t" + i +"\n"
418 self.__g_error_stage(msg)
419 return
420 except api_errors.CatalogRefreshException, e:
421 msg = _("Please check the network "
422 "connection.\nIs the repository accessible?")
423 if e.message and len(e.message) > 0:
424 msg = e.message
425 self.__g_error_stage(msg)
426 return
427 except api_errors.TransportError, ex:
428 msg = _("Please check the network "
|