aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2007-05-06 00:22:19 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2007-05-06 00:22:19 +0000
commitb318ebdf21c53036f6a2170b4758b5eea22892bf (patch)
tree0dd7f60c8b861d424223c56c08a5896e08cffae7 /src
parent01ea53fd4b6bfe88baef9a200d4756769fc6a1a9 (diff)
downloadpaludis-b318ebdf21c53036f6a2170b4758b5eea22892bf.tar.gz
paludis-b318ebdf21c53036f6a2170b4758b5eea22892bf.tar.xz
Set xterm titles to a meaningful failure message should the install process abort
Diffstat (limited to 'src')
-rw-r--r--src/output/console_install_task.cc16
-rw-r--r--src/output/console_install_task.hh3
2 files changed, 19 insertions, 0 deletions
diff --git a/src/output/console_install_task.cc b/src/output/console_install_task.cc
index 017134955..633f6591c 100644
--- a/src/output/console_install_task.cc
+++ b/src/output/console_install_task.cc
@@ -137,6 +137,14 @@ ConsoleInstallTask::on_clean_post(const DepListEntry &,
}
void
+ConsoleInstallTask::on_clean_fail(const DepListEntry &,
+ const PackageDatabaseEntry & c)
+{
+ output_xterm_title("(" + stringify(count<current_count>()) + " of "
+ + stringify(count<max_count>()) + ") Failed cleaning " + stringify(c));
+}
+
+void
ConsoleInstallTask::on_clean_all_post(const DepListEntry &,
const PackageDatabaseEntryCollection &)
{
@@ -301,8 +309,16 @@ ConsoleInstallTask::on_install_post(const DepListEntry &)
}
void
+ConsoleInstallTask::on_install_fail(const DepListEntry & d)
+{
+ output_xterm_title("(" + stringify(count<current_count>()) + "of "
+ + stringify(count<max_count>()) + ") Failed install of " + stringify(d.package));
+}
+
+void
ConsoleInstallTask::on_install_all_post()
{
+ output_xterm_title("Completed install");
}
void
diff --git a/src/output/console_install_task.hh b/src/output/console_install_task.hh
index e24d5c367..4f5bc36f8 100644
--- a/src/output/console_install_task.hh
+++ b/src/output/console_install_task.hh
@@ -144,6 +144,7 @@ namespace paludis
virtual void on_install_all_pre();
virtual void on_install_pre(const DepListEntry &);
virtual void on_install_post(const DepListEntry &);
+ virtual void on_install_fail(const DepListEntry &);
virtual void on_install_all_post();
virtual void on_no_clean_needed(const DepListEntry &);
@@ -153,6 +154,8 @@ namespace paludis
const PackageDatabaseEntry &);
virtual void on_clean_post(const DepListEntry &,
const PackageDatabaseEntry &);
+ virtual void on_clean_fail(const DepListEntry &,
+ const PackageDatabaseEntry &);
virtual void on_clean_all_post(const DepListEntry &,
const PackageDatabaseEntryCollection &);