Print this page
305 http_proxy value needs more checking for valid url syntax
2341 Client should be more conservative about closing sockets
4235 Misleading "node name" unknown messages when http_proxy set incorrectly
4495 Want ability to cancel individual file downloads
8902 Need a transport that downloads files by GET
9508 Captive portal test only run during catalog refresh
9613 Implicit refresh should raise InvalidDepotResponseException
9615 EOL clientside search v0
9629 EOL clientside support for filelist
9630 Hostile depot should live with other depot code
9631 HTTPS transport should be more rigorous in verification
9670 More specific error exceptions requested from search
9686 network operations should use accept-encoding when appropriate
9715 The info() operation should use the activity_lock

Split Close
Expand all
Collapse all
          --- old/src/gui/modules/installupdate.py
          +++ new/src/gui/modules/installupdate.py
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29  
  30   30  import errno
  31   31  import os
  32   32  import sys
  33   33  import time
  34   34  import pango
  35   35  import datetime
  36   36  import traceback
  37   37  import string
  38   38  from threading import Thread
  39      -from urllib2 import URLError
  40   39  try:
  41   40          import gobject
  42   41          import gtk
  43   42          import gtk.glade
  44   43          import pygtk
  45   44          pygtk.require("2.0")
  46   45  except ImportError:
  47   46          sys.exit(1)
  48   47  nobe = False
  49   48  try:
  50   49          import libbe as be
  51   50  except ImportError:
  52   51          nobe = True
  53   52  import pkg.client.progress as progress
  54   53  import pkg.misc
  55      -from pkg.client.retrieve import ManifestRetrievalError
  56      -from pkg.client.retrieve import DatastreamRetrievalError
  57      -from pkg.client.filelist import FileListRetrievalError
  58   54  import pkg.client.api_errors as api_errors
  59      -from pkg.misc import TransferTimedOutException, TransportException
  60   55  import pkg.gui.beadmin as beadm
  61   56  import pkg.gui.misc as gui_misc
  62   57  import pkg.gui.enumerations as enumerations
  63   58  
  64   59  ERROR_FORMAT = "<span color = \"red\">%s</span>"
  65   60  
  66   61  
  67   62  class InstallUpdate(progress.ProgressTracker):
  68   63          def __init__(self, list_of_packages, parent, api_o,
  69   64              ips_update = False, action = -1, be_name = None, 
↓ open down ↓ 357 lines elided ↑ open up ↑
 427  422                                          msg += "\tpkg:\t" + i +"\n"
 428  423                          self.__g_error_stage(msg)
 429  424                          return
 430  425                  except api_errors.CatalogRefreshException, e:
 431  426                          msg = _("Please check the network "
 432  427                              "connection.\nIs the repository accessible?")
 433  428                          if e.message and len(e.message) > 0:
 434  429                                  msg = e.message
 435  430                          self.__g_error_stage(msg)
 436  431                          return
 437      -                except (api_errors.NetworkUnavailableException, 
 438      -                    TransferTimedOutException, TransportException, URLError, 
 439      -                    ManifestRetrievalError, DatastreamRetrievalError, 
 440      -                    FileListRetrievalError), ex:
      432 +                except api_errors.TransportError, ex:
 441  433                          msg = _("Please check the network "
 442  434                              "connection.\nIs the repository accessible?\n\n"
 443  435                              "%s") % str(ex)
 444  436                          self.__g_error_stage(msg)
 445  437                          return
 446  438                  except api_errors.InvalidDepotResponseException, e:
 447  439                          msg = _("\nUnable to contact a valid package depot. "
 448  440                              "Please check your network\nsettings and "
 449  441                              "attempt to contact the server using a web "
 450  442                              "browser.\n\n%s") % str(e)
↓ open down ↓ 521 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX