aboutsummaryrefslogtreecommitdiff
path: root/ruby/repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:00:49 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:01:52 +0100
commitcbcd4493d29a3309ffc52f9b91c2fad0ad942ae2 (patch)
treef51da5b08588d68a6d6e649c6da71c29b68ffeb7 /ruby/repository.cc
parent576e0a19ba6bbf718d050f5743d687c3afc67641 (diff)
downloadpaludis-cbcd4493d29a3309ffc52f9b91c2fad0ad942ae2.tar.gz
paludis-cbcd4493d29a3309ffc52f9b91c2fad0ad942ae2.tar.xz
Consistent ctor style
Diffstat (limited to 'ruby/repository.cc')
-rw-r--r--ruby/repository.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ruby/repository.cc b/ruby/repository.cc
index 30d674f86..b27d7b965 100644
--- a/ruby/repository.cc
+++ b/ruby/repository.cc
@@ -694,7 +694,12 @@ namespace
rb_raise(rb_eArgError, "FakeInstalledRepository.new expects two arguments, but got %d", argc);
std::tr1::shared_ptr<Repository> * r = new std::tr1::shared_ptr<Repository>(new
- FakeInstalledRepository(value_to_environment(argv[0]).get(), RepositoryName(StringValuePtr(argv[1]))));
+ FakeInstalledRepository(make_named_values<FakeInstalledRepositoryParams>(
+ value_for<n::environment>(value_to_environment(argv[0]).get()),
+ value_for<n::name>(RepositoryName(StringValuePtr(argv[1]))),
+ value_for<n::suitable_destination>(true),
+ value_for<n::supports_uninstall>(true)
+ )));
VALUE tdata(Data_Wrap_Struct(self, 0, &Common<std::tr1::shared_ptr<Repository> >::free, r));
rb_obj_call_init(tdata, argc, argv);
return tdata;