aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 11:37:01 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 11:37:01 +0000
commit8e63bc0f0f95194c0eb6f40791db0b8d04f18eda (patch)
treed0f7c0d49999d1dfc492a3e083101ccd10075f4e
parent779d72c642a730d0453a92c05741d00e05a1338e (diff)
downloadpaludis-8e63bc0f0f95194c0eb6f40791db0b8d04f18eda.tar.gz
paludis-8e63bc0f0f95194c0eb6f40791db0b8d04f18eda.tar.xz
Prefix sync output
-rw-r--r--paludis/repositories/cran/cran_repository.cc13
-rw-r--r--paludis/repositories/e/e_repository.cc13
2 files changed, 20 insertions, 6 deletions
diff --git a/paludis/repositories/cran/cran_repository.cc b/paludis/repositories/cran/cran_repository.cc
index 812bef7..acc9ed7 100644
--- a/paludis/repositories/cran/cran_repository.cc
+++ b/paludis/repositories/cran/cran_repository.cc
@@ -371,12 +371,21 @@ CRANRepository::sync() const
cmd = "rsync --progress '" + _imp->params.sync + "/src/contrib/PACKAGES' ./";
- if (0 != run_command(Command(cmd).with_chdir(_imp->params.location)))
+ if (0 != run_command(Command(cmd)
+ .with_chdir(_imp->params.location)
+ .with_stdout_prefix("sync " + stringify(name()) + "> ")
+ .with_stderr_prefix("sync " + stringify(name()) + "> ")
+ ))
return false;
cmd = "rsync --progress '" + _imp->params.sync + "/CRAN_mirrors.csv' ./";
- return 0 == run_command(Command(cmd).with_chdir(_imp->params.location));
+ return 0 == run_command(Command(cmd)
+ .with_chdir(_imp->params.location)
+ .with_stdout_prefix("sync " + stringify(name()) + "> ")
+ .with_stderr_prefix("sync " + stringify(name()) + "> ")
+ .with_prefix_blank_lines()
+ );
}
tr1::shared_ptr<Repository>
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 683c560..4478f53 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -578,10 +578,15 @@ ERepository::sync() const
s_end(sync_list.end()) ; s != s_end ; ++s)
{
DefaultSyncer syncer(SyncerParams::create()
- .environment(_imp->params.environment)
- .local(stringify(_imp->params.location))
- .remote(*s));
- SyncOptions opts(_imp->params.sync_options, _imp->layout->sync_filter_file());
+ .environment(_imp->params.environment)
+ .local(stringify(_imp->params.location))
+ .remote(*s)
+ );
+ SyncOptions opts(
+ _imp->params.sync_options,
+ _imp->layout->sync_filter_file(),
+ "sync " + stringify(name()) + "> "
+ );
try
{
syncer.sync(opts);