aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-03-01 16:24:12 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-03-01 16:24:12 +0000
commit2bc04b90ec61ce38233a77a48c55a9baafa22cda (patch)
tree3584fd340e0d342a8d3e2d4e9b79a66f7e64be38
parent30e3fa2bb75ffc08b0b39a52d742053d080ae509 (diff)
downloadpaludis-2bc04b90ec61ce38233a77a48c55a9baafa22cda.tar.gz
paludis-2bc04b90ec61ce38233a77a48c55a9baafa22cda.tar.xz
Only display previous repository for packages that are being installed.
-rw-r--r--src/output/console_install_task.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/output/console_install_task.cc b/src/output/console_install_task.cc
index 3014fa5..3acf75c 100644
--- a/src/output/console_install_task.cc
+++ b/src/output/console_install_task.cc
@@ -949,7 +949,7 @@ ConsoleInstallTask::display_merge_list_entry_for(const PackageID & d, const Disp
}
void
-ConsoleInstallTask::display_merge_list_entry_repository(const DepListEntry & d, const DisplayMode)
+ConsoleInstallTask::display_merge_list_entry_repository(const DepListEntry & d, const DisplayMode m)
{
// XXX fix this once the new resolver's in
tr1::shared_ptr<const PackageIDSequence> inst(
@@ -959,7 +959,8 @@ ConsoleInstallTask::display_merge_list_entry_repository(const DepListEntry & d,
.slot(d.package_id->slot())) &
query::InstalledAtRoot(environment()->root()),
qo_best_version_only));
- bool changed(! inst->empty() && (*inst->begin())->source_origin_key() &&
+ bool changed(normal_entry == m &&
+ ! inst->empty() && (*inst->begin())->source_origin_key() &&
(*inst->begin())->source_origin_key()->value() !=
stringify(d.package_id->repository()->name()));