aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_stripper.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-07-29 21:47:08 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-03 21:20:26 +0100
commit77be16f5c2de2ebcd7ce78084755f83c522edc39 (patch)
tree7f46de7cf0f1cd9ec9cd2c4b342446cd0c4d567c /paludis/repositories/e/e_stripper.cc
parent5c42e4800f4e6edd91dc6d8cdf54afb3d1fb34df (diff)
downloadpaludis-77be16f5c2de2ebcd7ce78084755f83c522edc39.tar.gz
paludis-77be16f5c2de2ebcd7ce78084755f83c522edc39.tar.xz
Kill kc. Breaks python.
Diffstat (limited to 'paludis/repositories/e/e_stripper.cc')
-rw-r--r--paludis/repositories/e/e_stripper.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/paludis/repositories/e/e_stripper.cc b/paludis/repositories/e/e_stripper.cc
index 1f32d5d49..23c24e515 100644
--- a/paludis/repositories/e/e_stripper.cc
+++ b/paludis/repositories/e/e_stripper.cc
@@ -18,9 +18,9 @@
*/
#include <paludis/repositories/e/e_stripper.hh>
-#include <paludis/util/kc.hh>
#include <paludis/util/fs_entry.hh>
#include <paludis/util/private_implementation_pattern-impl.hh>
+#include <paludis/util/make_named_values.hh>
#include <iostream>
using namespace paludis;
@@ -41,11 +41,11 @@ namespace paludis
}
EStripper::EStripper(const EStripperOptions & options) :
- Stripper(StripperOptions::named_create()
- (k::image_dir(), options[k::image_dir()])
- (k::debug_build(), options[k::debug_build()])
- (k::debug_dir(), options[k::debug_dir()])
- ),
+ Stripper(make_named_values<StripperOptions>(
+ value_for<n::debug_build>(options.debug_build()),
+ value_for<n::debug_dir>(options.debug_dir()),
+ value_for<n::image_dir>(options.image_dir())
+ )),
PrivateImplementationPattern<EStripper>(new Implementation<EStripper>(options)),
_imp(PrivateImplementationPattern<EStripper>::_imp)
{
@@ -58,20 +58,20 @@ EStripper::~EStripper()
void
EStripper::on_strip(const FSEntry & f)
{
- std::cout << "str " << f.strip_leading(_imp->options[k::image_dir()]) << std::endl;
+ std::cout << "str " << f.strip_leading(_imp->options.image_dir()) << std::endl;
}
void
EStripper::on_split(const FSEntry & f, const FSEntry & g)
{
- std::cout << "spl " << f.strip_leading(_imp->options[k::image_dir()]) <<
- " -> " << g.strip_leading(_imp->options[k::image_dir()]) << std::endl;
+ std::cout << "spl " << f.strip_leading(_imp->options.image_dir()) <<
+ " -> " << g.strip_leading(_imp->options.image_dir()) << std::endl;
}
void
EStripper::on_unknown(const FSEntry & f)
{
- std::cout << "--- " << f.strip_leading(_imp->options[k::image_dir()]) << std::endl;
+ std::cout << "--- " << f.strip_leading(_imp->options.image_dir()) << std::endl;
}
void
@@ -87,7 +87,7 @@ EStripper::on_leave_dir(const FSEntry &)
void
EStripper::strip()
{
- std::cout << ">>> Stripping inside " << _imp->options[k::image_dir()] << std::endl;
+ std::cout << ">>> Stripping inside " << _imp->options.image_dir() << std::endl;
Stripper::strip();
}