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

From: <poeml_at_mirrorbrain.org>
Date: Mon, 08 Mar 2010 13:38:41 -0000
Author: poeml
Date: Mon Mar  8 14:38:40 2010
New Revision: 7963

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7963&view=rev
Log:
null-rsync:
- the error message that is given when a destination path lies outside the
  rsync destination has been improved (it incomprehensible and lacking detail)

Modified:
    trunk/tools/null-rsync

Modified: trunk/tools/null-rsync
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/null-rsync?rev=7963&r1=7962&r2=7963&view=diff
==============================================================================
--- trunk/tools/null-rsync (original)
+++ trunk/tools/null-rsync Mon Mar  8 14:38:40 2010
_at_@ -180,7 +180,8 @@
         path = os.path.join(rsync_dst, name)
         canonical_path = os.path.realpath(path)
         if not canonical_path.startswith(rsync_dst):
-            sys.exit("canonical path (%r) doesn't start with the rsync destination dir (%r)")
+            sys.exit("Error: After canonicalization, %r is outside the rsync destination path (%r):\n       %r" \
+                       % (name, rsync_dst, canonical_path))
         path = canonical_path.rstrip('/')
 
         if action == 'del.':




_______________________________________________
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 Mon Mar 08 2010 - 13:38:44 GMT

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