aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Brett Witherspoon <spoonb@exherbo.org> 2011-02-17 17:40:53 -0600
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-19 13:01:38 +0000
commitaf9ffdfee97b68dd495e2f19a9cc3e2878d0459f (patch)
tree7962ab3dcbfe8d5feba7cc085ef6403a35a7c910
parentf5d65636d94446685ce18063a93533c80268c18e (diff)
downloadpaludis-af9ffdfee97b68dd495e2f19a9cc3e2878d0459f.tar.gz
paludis-af9ffdfee97b68dd495e2f19a9cc3e2878d0459f.tar.xz
return a QualifiedPackageName not a ruby string
-rw-r--r--ruby/package_database.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/package_database.cc b/ruby/package_database.cc
index 6a8453a..16f9ad5 100644
--- a/ruby/package_database.cc
+++ b/ruby/package_database.cc
@@ -69,8 +69,8 @@ namespace
{
std::shared_ptr<PackageDatabase> * self_ptr;
Data_Get_Struct(self, std::shared_ptr<PackageDatabase>, self_ptr);
- return rb_str_new2(stringify((*self_ptr)->fetch_unique_qualified_package_name(
- PackageNamePart(StringValuePtr(argv[0])), 2 == argc ? value_to_filter(argv[1]) : filter::All())).c_str());
+ return qualified_package_name_to_value((*self_ptr)->fetch_unique_qualified_package_name(
+ PackageNamePart(StringValuePtr(argv[0])), 2 == argc ? value_to_filter(argv[1]) : filter::All()));
}
else
rb_raise(rb_eArgError, "fetch_unique_qualified_package_name expects one or two arguments, but got %d",argc);