Author: poeml Date: 2009-06-28 06:10:00 -0600 (Sun, 28 Jun 2009) New Revision: 7638 Modified: trunk/tools/download-redirector-v2/tools/metalink-hasher.py Log: metalink-hasher: - don't fail when directories vanish while we intend to look at Modified: trunk/tools/download-redirector-v2/tools/metalink-hasher.py =================================================================== --- trunk/tools/download-redirector-v2/tools/metalink-hasher.py 2009-06-28 10:33:41 UTC (rev 7637) +++ trunk/tools/download-redirector-v2/tools/metalink-hasher.py 2009-06-28 12:10:00 UTC (rev 7638) _at_@ -227,7 +227,13 @@ continue # stat only once - src_statinfo = os.lstat(src) + try: + src_statinfo = os.lstat(src) + except OSError, e: + if e.errno == errno.ENOENT: + sys.stderr.write('File vanished: %r' % src) + continue + if stat.S_ISLNK(src_statinfo.st_mode): #print 'ignoring link', src continue _______________________________________________ Opensuse-svn mailing list Opensuse-svn_at_forge.novell.com http://forge.novell.com/mailman/listinfo/opensuse-svn _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Sun Jun 28 2009 - 12:10:19 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT