[osgeo4w-dev] [osgeo4w] #210: apt:: gracefully handle md5 mismatch

OSGeo4W trac_osgeo4w at osgeo.org
Tue Feb 1 13:25:04 EST 2011


#210: apt:: gracefully handle md5 mismatch
------------------------+---------------------------------------------------
Reporter:  maphew       |       Owner:  osgeo4w-dev@…              
    Type:  enhancement  |      Status:  new                        
Priority:  major        |   Component:  Package                    
 Version:               |    Keywords:  pkg-apt                    
------------------------+---------------------------------------------------
 Currently when a calculated md5 sum doesn't match what setup.ini says it's
 supposed the error message is noisy and obscures the real problem. Update
 to simply report the mismatch and exit, not dump the stack  trace.

 {{{
 bf9d4dbe75bebd59b788b586bbb2f5a2  qgis-1.6.0-2.tar.bz2 - remote
 aba6054cbcef8cf3e24d852733b8178f  qgis-1.6.0-2.tar.bz2 - local
 Traceback (most recent call last):
   File "d:\dee\code\o4w\apt\apt.py", line 1029, in <module>
     __main__.__dict__[command] ()
   File "d:\dee\code\o4w\apt\apt.py", line 144, in install
     download ()
   File "d:\dee\code\o4w\apt\apt.py", line 109, in download
     md5 ()
   File "d:\dee\code\o4w\apt\apt.py", line 208, in md5
     raise 'file md5 does not match for ' + ball
 TypeError: exceptions must be classes or instances, not str
 }}}

 The real issue, also happening in several other places, is that string
 exceptions have been deprecated in python for some time.

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/210>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer for the OSGeo stack.


More information about the osgeo4w-dev mailing list