aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Danny van Dyk <dvandyk@exherbo.org> 2006-07-26 21:36:39 +0000
committerAvatar Danny van Dyk <dvandyk@exherbo.org> 2006-07-26 21:36:39 +0000
commita07eef61025a2614bb8a535dac98a75947a32be5 (patch)
tree6f94d40264ec457206e91a3005474fba8dea4a45
parentdc413124ffea913a79f05c21143a7d48cb8f62c2 (diff)
downloadpaludis-a07eef61025a2614bb8a535dac98a75947a32be5.tar.gz
paludis-a07eef61025a2614bb8a535dac98a75947a32be5.tar.xz
Fix InternalError while working on repositories without UseInterface.
-rw-r--r--paludis/default_environment.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/paludis/default_environment.cc b/paludis/default_environment.cc
index 527d9c9..b3a5d33 100644
--- a/paludis/default_environment.cc
+++ b/paludis/default_environment.cc
@@ -143,6 +143,7 @@ DefaultEnvironment::query_use(const UseFlagName & f, const PackageDatabaseEntry
/* check use: package database config */
if (repo->get_interface<repo_use>())
+ {
switch (repo->get_interface<repo_use>()->query_use(f, e))
{
case use_disabled:
@@ -153,7 +154,12 @@ DefaultEnvironment::query_use(const UseFlagName & f, const PackageDatabaseEntry
return true;
}
- throw InternalError(PALUDIS_HERE, "bad state");
+ throw InternalError(PALUDIS_HERE, "bad state");
+ }
+ else
+ {
+ return false;
+ }
}
bool