usr/src/lib/install_transfer/ips.py
changeset 1723 d23bbc08f2ac
parent 1721 4ee0239d9a9f
equal deleted inserted replaced
1722:a7be13de4bcc 1723:d23bbc08f2ac
    71 
    71 
    72 global_settings.client_name = PKG_CLIENT_NAME
    72 global_settings.client_name = PKG_CLIENT_NAME
    73 misc.setlocale(locale.LC_ALL, "")
    73 misc.setlocale(locale.LC_ALL, "")
    74 gettext.install("pkg", "/usr/share/locale")
    74 gettext.install("pkg", "/usr/share/locale")
    75 
    75 
       
    76 
    76 class AbstractIPS(Checkpoint):
    77 class AbstractIPS(Checkpoint):
    77     '''Subclass for transfer IPS checkpoint'''
    78     '''Subclass for transfer IPS checkpoint'''
    78     __metaclass__ = abc.ABCMeta
    79     __metaclass__ = abc.ABCMeta
    79 
    80 
    80     # Variables associated with the package image
    81     # Variables associated with the package image
   129         self._cancel_event = False
   130         self._cancel_event = False
   130 
   131 
   131         # Set the progress tracker for IPS operations.
   132         # Set the progress tracker for IPS operations.
   132         trackers = []
   133         trackers = []
   133         if self.show_stdout:
   134         if self.show_stdout:
   134             # Try to create a Fancy progress tracker.  If we're not running on a
   135             # Try to create a Fancy progress tracker.  If we're not running on
   135             # capable terminal, then bump the loglevel up to INFO.  This is a
   136             # a capable terminal, then bump the loglevel up to INFO.  This is a
   136             # hack, but it will cause the log messages to appear on stdout
   137             # hack, but it will cause the log messages to appear on stdout
   137             # and in the log file.
   138             # and in the log file.
   138             try:
   139             try:
   139                 t = progress.FancyUNIXProgressTracker(output_file=sys.stdout)
   140                 t = progress.FancyUNIXProgressTracker(output_file=sys.stdout)
   140                 trackers.append(t)
   141                 trackers.append(t)