aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-12 15:47:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-12 15:47:58 +0000
commit08fffee767105db0c2d5ca331845c32db1156ac9 (patch)
treec53962638e74d74bfad25cb537fb08d3653064c1
parent62c81b52fff2fe6483933ddd2e1f957626639ce8 (diff)
downloadpaludis-08fffee767105db0c2d5ca331845c32db1156ac9.tar.gz
paludis-08fffee767105db0c2d5ca331845c32db1156ac9.tar.xz
Exception context for syncers
-rw-r--r--paludis/syncer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/syncer.cc b/paludis/syncer.cc
index 6d9af1e..b0079ee 100644
--- a/paludis/syncer.cc
+++ b/paludis/syncer.cc
@@ -81,6 +81,9 @@ namespace
void
RsyncSyncer::sync() const
{
+ Context context("When performing sync via rsync from '" + _remote + "' to '"
+ + _local + "':");
+
std::string cmd("rsync --recursive --links --safe-links --perms --times "
"--compress --force --whole-file --delete --delete-after --stats "
"--timeout=180 --exclude=/distfiles --exclude=/packages --progress "
@@ -93,6 +96,9 @@ RsyncSyncer::sync() const
void
SvnSyncer::sync() const
{
+ Context context("When performing sync via subversion from '" + _remote + "' to '"
+ + _local + "':");
+
std::string cmd("svn checkout '" + _remote + "' '" + _local + "/'");
if (0 != run_command(cmd))