aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-04-23 22:31:23 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-04-23 22:31:23 +0000
commit7156dd039308cea69218e2b75e332141cca951ff (patch)
tree805fe098fb20e7e724222337e7956679eda1cf26
parente5da96e63891b2cbe0b9d82c3fa64653cab70bad (diff)
downloadpaludis-7156dd039308cea69218e2b75e332141cca951ff.tar.gz
paludis-7156dd039308cea69218e2b75e332141cca951ff.tar.xz
Improve messages.
-rw-r--r--paludis/repositories/e/e_repository.cc18
1 files changed, 12 insertions, 6 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 1202fdc..df647a4 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -671,14 +671,20 @@ ERepository::query_use(const UseFlagName & f, const PackageID & e) const
if (is_expand)
break;
- Log::get_instance()->message("e.query_use.not_in_iuse", ll_qa, lc_no_context)
- << "Was asked for the state of USE flag '" << f << "' for ID '" << e
- << "', but that flag is not listed in IUSE and is not a USE_EXPAND or ARCH value";
+ Log::get_instance()->message("e.query_use.not_in_iuse", ll_qa, lc_context)
+ << "Was asked for the state of "
+ << (*(*id.eapi())[k::supported()])[k::ebuild_environment_variables()][k::env_use()]
+ << " flag '" << f << "' for ID '" << e
+ << "', but that flag is not listed in " << id.iuse_key()->raw_name() << " and is not a "
+ << (*(*id.eapi())[k::supported()])[k::ebuild_environment_variables()][k::env_use_expand()] << " or "
+ << (*(*id.eapi())[k::supported()])[k::ebuild_environment_variables()][k::env_arch()] << " value";
}
else
- Log::get_instance()->message("e.query_use.not_in_iuse", ll_qa, lc_no_context)
- << "Was asked for the state of USE flag '" << f << "' for ID '" << e
- << "', but that flag is not listed in IUSE";
+ Log::get_instance()->message("e.query_use.not_in_iuse", ll_qa, lc_context)
+ << "Was asked for the state of "
+ << (*(*id.eapi())[k::supported()])[k::ebuild_environment_variables()][k::env_use()]
+ << " flag '" << f << "' for ID '" << e
+ << "', but that flag is not listed in " << id.iuse_key()->raw_name();
return use_disabled;
} while (false);