aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/vdb_repository.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/vdb_repository.cc')
-rw-r--r--paludis/repositories/e/vdb_repository.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index 8120531bb..f4901e86a 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -416,6 +416,10 @@ VDBRepository::perform_uninstall(
throw ActionFailedError("Couldn't uninstall '" + stringify(*id) +
"' because root ('" + stringify(_imp->params.root()) + "') is not a directory");
+ if (! id->eapi()->supported())
+ throw ActionFailedError("Couldn't uninstall '" + stringify(*id) +
+ "' because EAPI is unsupported");
+
std::shared_ptr<OutputManager> output_manager(a.options.make_output_manager()(a));
std::string reinstalling_str(a.options.is_overwrite() ? "-reinstalling-" : "");