aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_uninstall.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-01 16:46:15 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-01 16:46:15 +0000
commit6a432ad8d444deda7fc65746e8028e21dfde2d1e (patch)
tree7fb0f1556a0a3346b0ea4fe0706f8dce2ea55dc5 /src/clients/cave/cmd_uninstall.cc
parent462b3e40072d94d9af6c30b3862aec7e0f4db398 (diff)
downloadpaludis-6a432ad8d444deda7fc65746e8028e21dfde2d1e.tar.gz
paludis-6a432ad8d444deda7fc65746e8028e21dfde2d1e.tar.xz
Show nice errors for specs in more places
Diffstat (limited to 'src/clients/cave/cmd_uninstall.cc')
-rw-r--r--src/clients/cave/cmd_uninstall.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_uninstall.cc b/src/clients/cave/cmd_uninstall.cc
index 5f5798e7e..b6a52db1b 100644
--- a/src/clients/cave/cmd_uninstall.cc
+++ b/src/clients/cave/cmd_uninstall.cc
@@ -21,6 +21,7 @@
#include "resolve_cmdline.hh"
#include "resolve_common.hh"
#include "exceptions.hh"
+#include "parse_spec_with_nice_error.hh"
#include <paludis/util/stringify.hh>
#include <paludis/util/indirect_iterator-impl.hh>
@@ -140,7 +141,7 @@ UninstallCommand::run(
for (UninstallCommandLine::ParametersConstIterator p(cmdline.begin_parameters()), p_end(cmdline.end_parameters()) ;
p != p_end ; ++p)
{
- PackageDepSpec spec(parse_user_package_dep_spec(*p, env.get(), { updso_allow_wildcards }));
+ PackageDepSpec spec(parse_spec_with_nice_error(*p, env.get(), { updso_allow_wildcards }, filter::All()));
const std::shared_ptr<const PackageIDSequence> ids((*env)[selection::AllVersionsSorted(
generator::Matches(spec, make_null_shared_ptr(), { }) | filter::SupportsAction<UninstallAction>())]);
if (ids->empty())