aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-05-06 15:27:51 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-05-06 15:27:51 +0000
commit12eb0f55581017a4c8223b7c94dcb5192b691548 (patch)
tree4b5f6bbee86626e579ef2eb12e904eda575b3c51
parentd15a41077568d27992782369ac10fe19b69616d2 (diff)
downloadpaludis-12eb0f55581017a4c8223b7c94dcb5192b691548.tar.gz
paludis-12eb0f55581017a4c8223b7c94dcb5192b691548.tar.xz
Show use.force info in --install output
-rw-r--r--src/install.cc19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/install.cc b/src/install.cc
index 0a0bbc8..3297c25 100644
--- a/src/install.cc
+++ b/src/install.cc
@@ -217,12 +217,21 @@ do_install()
i_end(dep->get<p::dle_metadata>()->end_iuse()) ; i != i_end ; ++i)
{
if (env->query_use(*i, &p))
- cout << " " << colour(cl_flag_on, *i);
- else if (env->package_database()->fetch_repository(
- dep->get<p::dle_repository>())->query_use_mask(*i, &p))
- cout << " " << colour(cl_flag_off, "(-" + p::stringify(*i) + ")");
+ {
+ if (env->package_database()->fetch_repository(
+ dep->get<p::dle_repository>())->query_use_force(*i, &p))
+ cout << " " << colour(cl_flag_on, "(" + p::stringify(*i) + ")");
+ else
+ cout << " " << colour(cl_flag_on, *i);
+ }
else
- cout << " " << colour(cl_flag_off, "-" + p::stringify(*i));
+ {
+ if (env->package_database()->fetch_repository(
+ dep->get<p::dle_repository>())->query_use_mask(*i, &p))
+ cout << " " << colour(cl_flag_off, "(-" + p::stringify(*i) + ")");
+ else
+ cout << " " << colour(cl_flag_off, "-" + p::stringify(*i));
+ }
}
/* display tag, add tag to our post display list */