aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-05 15:38:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-05 15:43:08 +0000
commit522e51d46065cfe715694ba313a804bb7c83491a (patch)
treed05d6a84daf8faf4cdf7e2bcf78cdcf08a4c96ed /paludis/repositories/virtuals
parent0ed619a90ccade52eb2492f6a6ffb2008beda437 (diff)
downloadpaludis-522e51d46065cfe715694ba313a804bb7c83491a.tar.gz
paludis-522e51d46065cfe715694ba313a804bb7c83491a.tar.xz
Tweak actions, create output manager info
Avoid having multiple confusing and different ways of stringifying an action. Don't store actual actions or repositories in create output manager info classes. Allow serialisation of CreateOutputManagerInfo.
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/package_id.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/paludis/repositories/virtuals/package_id.cc b/paludis/repositories/virtuals/package_id.cc
index ab07b7990..9e3d3e26e 100644
--- a/paludis/repositories/virtuals/package_id.cc
+++ b/paludis/repositories/virtuals/package_id.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2009, 2010 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
@@ -392,49 +392,49 @@ namespace
{
SupportsActionTest<InstallAction> t;
if (! id->repository()->some_ids_might_support_action(t))
- throw ActionFailedError("Unsupported action: " + stringify(a));
+ throw ActionFailedError("Unsupported action: " + a.simple_name());
}
void visit(const UninstallAction & a)
{
SupportsActionTest<UninstallAction> t;
if (! id->repository()->some_ids_might_support_action(t))
- throw ActionFailedError("Unsupported action: " + stringify(a));
+ throw ActionFailedError("Unsupported action: " + a.simple_name());
}
void visit(const ConfigAction & a)
{
SupportsActionTest<ConfigAction> t;
if (! id->repository()->some_ids_might_support_action(t))
- throw ActionFailedError("Unsupported action: " + stringify(a));
+ throw ActionFailedError("Unsupported action: " + a.simple_name());
}
void visit(const FetchAction & a)
{
SupportsActionTest<FetchAction> t;
if (! id->repository()->some_ids_might_support_action(t))
- throw ActionFailedError("Unsupported action: " + stringify(a));
+ throw ActionFailedError("Unsupported action: " + a.simple_name());
}
void visit(const InfoAction & a)
{
SupportsActionTest<InfoAction> t;
if (! id->repository()->some_ids_might_support_action(t))
- throw ActionFailedError("Unsupported action: " + stringify(a));
+ throw ActionFailedError("Unsupported action: " + a.simple_name());
}
void visit(const PretendAction & a)
{
SupportsActionTest<PretendAction> t;
if (! id->repository()->some_ids_might_support_action(t))
- throw ActionFailedError("Unsupported action: " + stringify(a));
+ throw ActionFailedError("Unsupported action: " + a.simple_name());
}
void visit(const PretendFetchAction & a)
{
SupportsActionTest<PretendFetchAction> t;
if (! id->repository()->some_ids_might_support_action(t))
- throw ActionFailedError("Unsupported action: " + stringify(a));
+ throw ActionFailedError("Unsupported action: " + a.simple_name());
}
};
}