aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 11:37:02 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 11:37:02 +0000
commitd871dc2994417f4aeee9199d23b7e5d66e03bc63 (patch)
tree4d1f0c47d0f5758935cb09579d71852c0e5027ba
parent8e63bc0f0f95194c0eb6f40791db0b8d04f18eda (diff)
downloadpaludis-d871dc2994417f4aeee9199d23b7e5d66e03bc63.tar.gz
paludis-d871dc2994417f4aeee9199d23b7e5d66e03bc63.tar.xz
Prefixing support
-rw-r--r--paludis/syncer.cc6
-rw-r--r--paludis/syncer.sr1
2 files changed, 7 insertions, 0 deletions
diff --git a/paludis/syncer.cc b/paludis/syncer.cc
index 66b5ed0..6cad43d 100644
--- a/paludis/syncer.cc
+++ b/paludis/syncer.cc
@@ -98,6 +98,12 @@ DefaultSyncer::sync(const SyncOptions & opts) const
.with_setenv("PALUDIS_EBUILD_DIR", getenv_with_default("PALUDIS_EBUILD_DIR", LIBEXECDIR "/paludis"))
.with_setenv("PALUDIS_SYNC_FILTER_FILE", stringify(opts.filter_file)));
+ if (! opts.output_prefix.empty())
+ cmd
+ .with_stdout_prefix(opts.output_prefix)
+ .with_stderr_prefix(opts.output_prefix)
+ .with_prefix_blank_lines();
+
if (run_command(cmd))
throw SyncFailedError(_local, _remote);
}
diff --git a/paludis/syncer.sr b/paludis/syncer.sr
index 8b2ed75..b5d6557 100644
--- a/paludis/syncer.sr
+++ b/paludis/syncer.sr
@@ -7,6 +7,7 @@ make_class_SyncOptions()
key options std::string
key filter_file FSEntry
+ key output_prefix std::string
doxygen_comment << "END"
/**