aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-04 01:23:03 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-04 01:23:03 +0000
commit3ef47f233d579b338cb5e757ee73a3c9382c87ed (patch)
tree208992cee404233edf4bc67c045feed3613d3f4b /ruby
parent6ef9fda358a0541b5a5f70011f70adcdc1e30134 (diff)
downloadpaludis-3ef47f233d579b338cb5e757ee73a3c9382c87ed.tar.gz
paludis-3ef47f233d579b338cb5e757ee73a3c9382c87ed.tar.xz
kc some more sr
Diffstat (limited to 'ruby')
-rw-r--r--ruby/metadata_key.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/ruby/metadata_key.cc b/ruby/metadata_key.cc
index e411a87..871b66c 100644
--- a/ruby/metadata_key.cc
+++ b/ruby/metadata_key.cc
@@ -2,7 +2,7 @@
/*
* Copyright (c) 2007, 2008 Richard Brown
- * Copyright (c) 2007 Ciaran McCreesh
+ * Copyright (c) 2007, 2008 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -21,6 +21,7 @@
#include <paludis_ruby.hh>
#include <paludis/util/wrapped_forward_iterator.hh>
#include <paludis/util/visitor-impl.hh>
+#include <paludis/util/kc.hh>
#include <paludis/package_id.hh>
#include <paludis/metadata_key.hh>
#include <paludis/mask.hh>
@@ -508,7 +509,7 @@ namespace
{
tr1::shared_ptr<const RepositoryMaskInfo> * ptr;
Data_Get_Struct(self, tr1::shared_ptr<const RepositoryMaskInfo>, ptr);
- return rb_str_new2(stringify((*ptr)->mask_file).c_str());
+ return rb_str_new2(stringify((**ptr)[k::mask_file()]).c_str());
}
/*
@@ -523,8 +524,8 @@ namespace
tr1::shared_ptr<const RepositoryMaskInfo> * ptr;
Data_Get_Struct(self, tr1::shared_ptr<const RepositoryMaskInfo>, ptr);
VALUE result(rb_ary_new());
- for (Sequence<std::string>::ConstIterator it((*ptr)->comment->begin()),
- it_end((*ptr)->comment->end()); it_end != it; ++it)
+ for (Sequence<std::string>::ConstIterator it((**ptr)[k::comment()]->begin()),
+ it_end((**ptr)[k::comment()]->end()); it_end != it; ++it)
rb_ary_push(result, rb_str_new2(it->c_str()));
return result;
}