aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-27 12:35:53 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-27 12:35:53 +0100
commit97aace110d83d415008f61c443ea813dc731ed80 (patch)
tree76beb33cfb2c9470ce10c6dc4511cd55b6209bc7
parentb3aa56d3b44f81fa2d341d193f0648be4d5f1390 (diff)
downloadpaludis-97aace110d83d415008f61c443ea813dc731ed80.tar.gz
paludis-97aace110d83d415008f61c443ea813dc731ed80.tar.xz
Check sets_dir exists rather than catching
-rw-r--r--paludis/repositories/e/e_repository_sets.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/paludis/repositories/e/e_repository_sets.cc b/paludis/repositories/e/e_repository_sets.cc
index e87a6d3..e34345a 100644
--- a/paludis/repositories/e/e_repository_sets.cc
+++ b/paludis/repositories/e/e_repository_sets.cc
@@ -143,7 +143,7 @@ ERepositorySets::sets_list() const
result->insert(SetName("security"));
result->insert(SetName("system"));
- try
+ if (_imp->params.setsdir().exists())
{
using namespace std::tr1::placeholders;
@@ -168,9 +168,6 @@ ERepositorySets::sets_list() const
<< *f << "' due to exception '" << e.message() << "' (" << e.what() << ")";
}
}
- catch (const paludis::DirOpenError &)
- {
- }
return result;
}