aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-26 17:13:13 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-26 17:13:13 +0000
commit20b841f4170fe5eafab9a65e877e9d17b9db13db (patch)
treef8a35090f275b39357a4e27ba0caa086bb2e05ff
parent891886841f4571a2d60f2431f8b2d0784079dc86 (diff)
downloadpaludis-20b841f4170fe5eafab9a65e877e9d17b9db13db.tar.gz
paludis-20b841f4170fe5eafab9a65e877e9d17b9db13db.tar.xz
Make virtual/ unimportant for VDB.
-rw-r--r--paludis/repositories/e/vdb_repository.cc8
-rw-r--r--paludis/repositories/e/vdb_repository.hh2
2 files changed, 10 insertions, 0 deletions
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index 0948e5f..34e9de5 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -225,6 +225,14 @@ VDBRepository::category_names() const
return result;
}
+tr1::shared_ptr<const CategoryNamePartSet>
+VDBRepository::unimportant_category_names() const
+{
+ tr1::shared_ptr<CategoryNamePartSet> result(make_shared_ptr(new CategoryNamePartSet));
+ result->insert(CategoryNamePart("virtual"));
+ return result;
+}
+
tr1::shared_ptr<const QualifiedPackageNameSet>
VDBRepository::package_names(const CategoryNamePart & c) const
{
diff --git a/paludis/repositories/e/vdb_repository.hh b/paludis/repositories/e/vdb_repository.hh
index 26fe95f..2bb3e50 100644
--- a/paludis/repositories/e/vdb_repository.hh
+++ b/paludis/repositories/e/vdb_repository.hh
@@ -223,6 +223,8 @@ namespace paludis
virtual bool has_category_named(const CategoryNamePart &) const
PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual tr1::shared_ptr<const CategoryNamePartSet> unimportant_category_names() const;
+
virtual bool some_ids_might_support_action(const SupportsActionTestBase &) const;
/* Keys */