[tmcode commit] r312 - spine/branches/spine_2_2-devel/lib/Spine

0 views
Skip to first unread message

oss...@gmail.com

unread,
Mar 30, 2010, 11:16:57 AM3/30/10
to tmcode...@googlegroups.com
Author: richard
Date: Tue Mar 30 08:16:56 2010
New Revision: 312

Log:
cleanup of rsync output to make it more readable Ticket #113

Modified:
spine/branches/spine_2_2-devel/lib/Spine/Util.pm

Modified: spine/branches/spine_2_2-devel/lib/Spine/Util.pm
==============================================================================
--- spine/branches/spine_2_2-devel/lib/Spine/Util.pm Tue Mar 30 08:13:24 2010 (r311)
+++ spine/branches/spine_2_2-devel/lib/Spine/Util.pm Tue Mar 30 08:16:56 2010 (r312)
@@ -211,8 +211,11 @@
$args{Target}]);

unless ($? == 0) {
- $c->error("rsync failed from $args{Source} [".join("", @result)."]",
- "err");
+ $c->error("rsync failed from $args{Source} to $args{Target}", "err");
+ foreach (@result) {
+ chomp;
+ $c->error("rsync: $_", "err");
+ }
unlink($tmpfn);
return SPINE_FAILURE;
}

Reply all
Reply to author
Forward
0 new messages