aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-06 19:13:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-06 19:13:49 +0000
commitaf59deeafa26271274a80a4f7ea9bed48beb28e1 (patch)
tree7c4cbda238e5ea6136c042f582f57f6815d05d7c /paludis/repositories/virtuals
parent26e9d4a80c83fa61580e54b9251713e733242365 (diff)
downloadpaludis-af59deeafa26271274a80a4f7ea9bed48beb28e1.tar.gz
paludis-af59deeafa26271274a80a4f7ea9bed48beb28e1.tar.xz
kill more sr
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository.cc4
-rw-r--r--paludis/repositories/virtuals/virtuals_repository.cc8
2 files changed, 6 insertions, 6 deletions
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository.cc b/paludis/repositories/virtuals/installed_virtuals_repository.cc
index 304e2d693..f20ff5cfb 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository.cc
+++ b/paludis/repositories/virtuals/installed_virtuals_repository.cc
@@ -173,7 +173,7 @@ InstalledVirtualsRepository::need_ids() const
std::tr1::shared_ptr<const PackageIDSequence>
InstalledVirtualsRepository::package_ids(const QualifiedPackageName & q) const
{
- if (q.category.data() != "virtual")
+ if (q.category().data() != "virtual")
return std::tr1::shared_ptr<PackageIDSequence>(new PackageIDSequence);
need_ids();
@@ -211,7 +211,7 @@ InstalledVirtualsRepository::category_names() const
bool
InstalledVirtualsRepository::has_package_named(const QualifiedPackageName & q) const
{
- if (q.category.data() != "virtual")
+ if (q.category().data() != "virtual")
return false;
need_ids();
diff --git a/paludis/repositories/virtuals/virtuals_repository.cc b/paludis/repositories/virtuals/virtuals_repository.cc
index 8a6eeb03e..797dc71f6 100644
--- a/paludis/repositories/virtuals/virtuals_repository.cc
+++ b/paludis/repositories/virtuals/virtuals_repository.cc
@@ -242,7 +242,7 @@ VirtualsRepository::need_ids() const
i = my_ids.insert(std::make_pair(v->first, make_shared_ptr(new PackageIDSequence))).first;
std::tr1::shared_ptr<const PackageID> id(make_virtual_package_id(QualifiedPackageName(v->first), *m));
- if (stringify(id->name().category) != "virtual")
+ if (stringify(id->name().category()) != "virtual")
throw InternalError(PALUDIS_HERE, "Got bad id '" + stringify(*id) + "'");
i->second->push_back(id);
}
@@ -255,7 +255,7 @@ VirtualsRepository::need_ids() const
std::tr1::shared_ptr<const PackageIDSequence>
VirtualsRepository::package_ids(const QualifiedPackageName & q) const
{
- if (q.category.data() != "virtual")
+ if (q.category().data() != "virtual")
return std::tr1::shared_ptr<PackageIDSequence>(new PackageIDSequence);
need_ids();
@@ -293,7 +293,7 @@ VirtualsRepository::category_names() const
bool
VirtualsRepository::has_package_named(const QualifiedPackageName & q) const
{
- if (q.category.data() != "virtual")
+ if (q.category().data() != "virtual")
return false;
need_names();
@@ -336,7 +336,7 @@ const std::tr1::shared_ptr<const PackageID>
VirtualsRepository::make_virtual_package_id(
const QualifiedPackageName & virtual_name, const std::tr1::shared_ptr<const PackageID> & provider) const
{
- if (virtual_name.category.data() != "virtual")
+ if (virtual_name.category().data() != "virtual")
throw InternalError(PALUDIS_HERE, "tried to make a virtual package id using '" + stringify(virtual_name) + "', '"
+ stringify(*provider) + "'");