Bug#213725: set title for package being configured
Package: main-menu
Version: 0.040
Tags: d-i
main-menu should set the title for the package being configured.
In order to do so for the packages that are depended on, I think
we need to add a prewalkfunc callback to di_config_package.
The following patch will set the title for the main-menu entry,
though.
Index: main-menu.c
===================================================================
RCS file: /cvs/debian-boot/debian-installer/main-menu/main-menu.c,v
retrieving revision 1.91
diff -u -c -r1.91 main-menu.c
cvs server: conflicting specifications of output style
*** main-menu.c 2 Oct 2003 03:38:35 -0000 1.91
--- main-menu.c 2 Oct 2003 09:42:43 -0000
***************
*** 421,430 ****
}
int do_menu_item(struct package_t *p) {
! char *configcommand;
int ret = 0;
di_logf("Menu item '%s' selected", p->package);
if (p->status == installed) {
/* The menu item is already configured, so reconfigure it. */
--- 421,438 ----
}
int do_menu_item(struct package_t *p) {
! struct debconfclient *debconf;
! char *configcommand, *title;
int ret = 0;
di_logf("Menu item '%s' selected", p->package);
+
+ debconf = debconfclient_new();
+ asprintf(&title, "debian-installer/%s/title", p->package);
+ if (debconf_settitle(debconf, title))
+ di_logf("Unable to set title for %s.", p->package);
+ free(title);
+ debconfclient_delete(debconf);
if (p->status == installed) {
/* The menu item is already configured, so reconfigure it. */
--
Matty
Reply to: