[mirrorbrain-commits] r7924 - /trunk/tools/null-rsync

From: <poeml_at_mirrorbrain.org>
Date: Sun, 06 Dec 2009 21:52:16 -0000
Author: poeml
Date: Sun Dec  6 22:52:15 2009
New Revision: 7924

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7924&view=rev
Log:
null-rsync: handle rsync returning an IO error

Modified:
    trunk/tools/null-rsync

Modified: trunk/tools/null-rsync
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/null-rsync?rev=7924&r1=7923&r2=7924&view=diff
==============================================================================
--- trunk/tools/null-rsync (original)
+++ trunk/tools/null-rsync Sun Dec  6 22:52:15 2009
_at_@ -159,6 +159,9 @@
             if not line.startswith('recv rwxrwxrwx .L..t......'):
                 print line.rstrip()
 
+        if line.startswith('IO'):
+            sys.exit('rsync returned an error:\n%s' % line)
+
         words = line.strip().split(None, 5)
         # ['recv', 'rwxrwxrwx', 'cL+++++++++', '2009/05/31-03:31:46', '25', 'repo/1.0/11.1/suse/x86_64/yaz.rpm -> yaz-3.0.34-1.8.x86_64.rpm']
 




_______________________________________________
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.org
Received on Sun Dec 06 2009 - 21:52:17 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT