From 5b92093cceab1dc3f2e0a9ca00436cafa445dd80 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Thu, 27 Jan 2011 20:08:06 +0000 Subject: Show compressing splits as spz --- paludis/repositories/e/e_stripper.cc | 6 ++++-- paludis/repositories/unpackaged/unpackaged_stripper.cc | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/paludis/repositories/e/e_stripper.cc b/paludis/repositories/e/e_stripper.cc index 185cb16a2..2354284eb 100644 --- a/paludis/repositories/e/e_stripper.cc +++ b/paludis/repositories/e/e_stripper.cc @@ -65,8 +65,10 @@ EStripper::on_strip(const FSPath & f) void EStripper::on_split(const FSPath & f, const FSPath & g) { - _imp->options.output_manager()->stdout_stream() << "spl " << f.strip_leading(_imp->options.image_dir()) << - " -> " << g.strip_leading(_imp->options.image_dir()) << std::endl; + _imp->options.output_manager()->stdout_stream() + << ((_imp->options.compress_splits()) ? "spz " : "spl ") + << f.strip_leading(_imp->options.image_dir()) + << " -> " << g.strip_leading(_imp->options.image_dir()) << std::endl; } void diff --git a/paludis/repositories/unpackaged/unpackaged_stripper.cc b/paludis/repositories/unpackaged/unpackaged_stripper.cc index fcbb7fad5..8cc76d89a 100644 --- a/paludis/repositories/unpackaged/unpackaged_stripper.cc +++ b/paludis/repositories/unpackaged/unpackaged_stripper.cc @@ -65,8 +65,10 @@ UnpackagedStripper::on_strip(const FSPath & f) void UnpackagedStripper::on_split(const FSPath & f, const FSPath & g) { - _imp->options.output_manager()->stdout_stream() << "spl " << f.strip_leading(_imp->options.image_dir()) << - " -> " << g.strip_leading(_imp->options.image_dir()) << std::endl; + _imp->options.output_manager()->stdout_stream() + << ((_imp->options.compress_splits()) ? "spz " : "spl ") + << f.strip_leading(_imp->options.image_dir()) + << " -> " << g.strip_leading(_imp->options.image_dir()) << std::endl; } void -- cgit v1.2.3