aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-23 20:55:39 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-23 20:55:39 +0000
commit4c0cb9770a2e5035028231942229df975c7e3b5f (patch)
tree9aadb37308e2833c682a97589e6ba6312de02dd4 /paludis/repositories/fake
parent821dd6b5b697bb660a494c485e5f46bfe24554b5 (diff)
downloadpaludis-4c0cb9770a2e5035028231942229df975c7e3b5f.tar.gz
paludis-4c0cb9770a2e5035028231942229df975c7e3b5f.tar.xz
Better --info, pkg_info support. Fixes: ticket:367
Diffstat (limited to 'paludis/repositories/fake')
-rw-r--r--paludis/repositories/fake/fake_installed_repository.cc4
-rw-r--r--paludis/repositories/fake/fake_package_id.cc7
-rw-r--r--paludis/repositories/fake/fake_repository.cc4
3 files changed, 15 insertions, 0 deletions
diff --git a/paludis/repositories/fake/fake_installed_repository.cc b/paludis/repositories/fake/fake_installed_repository.cc
index ef39e407d..4030c0576 100644
--- a/paludis/repositories/fake/fake_installed_repository.cc
+++ b/paludis/repositories/fake/fake_installed_repository.cc
@@ -157,6 +157,10 @@ namespace
{
}
+ void visit(const SupportsActionTest<InfoAction> &)
+ {
+ }
+
void visit(const SupportsActionTest<UninstallAction> &)
{
}
diff --git a/paludis/repositories/fake/fake_package_id.cc b/paludis/repositories/fake/fake_package_id.cc
index 40d3c6ada..90f5ac98a 100644
--- a/paludis/repositories/fake/fake_package_id.cc
+++ b/paludis/repositories/fake/fake_package_id.cc
@@ -732,6 +732,13 @@ namespace
throw UnsupportedActionError(*id, a);
}
+ void visit(const InfoAction & a)
+ {
+ SupportsActionTest<InfoAction> t;
+ if (! id->repository()->some_ids_might_support_action(t))
+ throw UnsupportedActionError(*id, a);
+ }
+
void visit(const PretendAction & a)
{
SupportsActionTest<PretendAction> t;
diff --git a/paludis/repositories/fake/fake_repository.cc b/paludis/repositories/fake/fake_repository.cc
index 39f57721b..219378bd0 100644
--- a/paludis/repositories/fake/fake_repository.cc
+++ b/paludis/repositories/fake/fake_repository.cc
@@ -141,6 +141,10 @@ namespace
{
}
+ void visit(const SupportsActionTest<InfoAction> &)
+ {
+ }
+
void visit(const SupportsActionTest<UninstallAction> &)
{
}