aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-02-05 14:36:54 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-02-05 15:33:39 +0000
commit8b8f9ca2401a8ca36c44b18213f82f0dbadc2b27 (patch)
tree7bd86bdf5184dc9675e4d60d512f6d4302029f4d
parent96ab40db24ed0c814d2c19aa5b5ab5164d549eeb (diff)
downloadpaludis-8b8f9ca2401a8ca36c44b18213f82f0dbadc2b27.tar.gz
paludis-8b8f9ca2401a8ca36c44b18213f82f0dbadc2b27.tar.xz
Untaken jobs might not be installs
-rw-r--r--src/clients/cave/cmd_display_resolution.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 5608162..12cfa71 100644
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -859,8 +859,11 @@ namespace
i_end(lists.untaken_job_ids()->end()) ;
i != i_end ; ++i)
{
- const std::tr1::shared_ptr<const SimpleInstallJob> job(lists.jobs()->fetch_as<SimpleInstallJob>(*i));
- display_one_install(env, cmdline, *job);
+ const std::tr1::shared_ptr<const Job> job(lists.jobs()->fetch(*i));
+ ShowJobsDisplayer d(env, cmdline, lists, cmdline.display_options.a_show_all_jobs.specified() ||
+ ! job->used_existing_packages_when_ordering()->empty());
+ if (! job->accept_returning<bool>(d))
+ throw InternalError(PALUDIS_HERE, "why didn't we get true?");
}
for (JobIDSequence::ConstIterator i(lists.untaken_error_job_ids()->begin()),