aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-26 08:41:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-26 08:41:49 +0000
commit829547eefc341b0a6735cfebedda03a814490c4a (patch)
treeb1f88e82f77f08b7f304b4c44e0fce5dcee7853d
parent875ef853c0f9a3d079206a19decebed6255b26a2 (diff)
downloadpaludis-829547eefc341b0a6735cfebedda03a814490c4a.tar.gz
paludis-829547eefc341b0a6735cfebedda03a814490c4a.tar.xz
Display keywords for masked packages, as per licences
-rw-r--r--src/install.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/install.cc b/src/install.cc
index bcda7c9..7577f65 100644
--- a/src/install.cc
+++ b/src/install.cc
@@ -500,12 +500,25 @@ do_install()
cerr << " ";
std::string license_str(env->package_database()->fetch_repository(
pp->get<p::pde_repository>())->version_metadata(
- pp->get<p::pde_name>(), pp->get<p::pde_version>())->get(p::vmk_license));
+ pp->get<p::pde_name>(), pp->get<p::pde_version>())->get(
+ p::vmk_license));
LicenceDisplayer ld(env, &*pp);
p::DepParser::parse(license_str, p::DepParserPolicy<p::PlainTextDepAtom,
true>::get_instance())->accept(&ld);
}
+ else if (p::mr_keyword == mm)
+ {
+ cerr << " ( " << colour(cl_red, p::join(
+ env->package_database()->fetch_repository(
+ pp->get<p::pde_repository>())->version_metadata(
+ pp->get<p::pde_name>(), pp->get<p::pde_version>())->
+ begin_keywords(),
+ env->package_database()->fetch_repository(
+ pp->get<p::pde_repository>())->version_metadata(
+ pp->get<p::pde_name>(), pp->get<p::pde_version>())->
+ end_keywords(), " ")) << " )";
+ }
need_comma = true;
}