[Bps-public-commit] Prophet branch, master, updated. 0.73-1-g2b820fe

spang at bestpractical.com spang at bestpractical.com
Fri Sep 11 09:53:04 EDT 2009


The branch, master has been updated
       via  2b820fe1edc071da8cc72d1de7f90f37d00513dd (commit)
      from  72ce6769d5d81f882fc9dc03d8889000aa4c4aa4 (commit)

Summary of changes:
 lib/Prophet/CLI/PublishCommand.pm |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 2b820fe1edc071da8cc72d1de7f90f37d00513dd
Author: Christine Spang <spang at bestpractical.com>
Date:   Thu Sep 10 18:36:25 2009 -0400

    Propogate rsync errors in publish (RT ticket #49527)
    
    Thanks to Nelson Elhage for reporting.

diff --git a/lib/Prophet/CLI/PublishCommand.pm b/lib/Prophet/CLI/PublishCommand.pm
index 3e908b6..7f2eaeb 100644
--- a/lib/Prophet/CLI/PublishCommand.pm
+++ b/lib/Prophet/CLI/PublishCommand.pm
@@ -71,8 +71,12 @@ If you have rsync but it's not in your path, set the environment variable
 $RSYNC to the absolute path of your rsync executable.
 END_DIE_MSG
     }
-
-    return $ret;
+    elsif ($ret != 0) {
+        die "Publish NOT completed! (rsync failed with return value $ret)\n";
+    }
+    else {
+        return $ret;
+    }
 }
 
 no Any::Moose;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list