From 050294fac10bef29540f5ac349394b33ebe9398d Mon Sep 17 00:00:00 2001 From: hannken Date: Thu, 25 Apr 2024 11:25:08 +0000 Subject: [PATCH] Increase length of set description to 40 characters so recent additions fit. Ok: martin@ Fixes PR install/58188 "sysinst fails to display status of base32 set" --- usr.sbin/sysinst/msg.mi.de | 6 +++--- usr.sbin/sysinst/msg.mi.en | 6 +++--- usr.sbin/sysinst/msg.mi.es | 6 +++--- usr.sbin/sysinst/msg.mi.pl | 6 +++--- usr.sbin/sysinst/util.c | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/usr.sbin/sysinst/msg.mi.de b/usr.sbin/sysinst/msg.mi.de index 33f4e8ad213d..233236a54efd 100644 --- a/usr.sbin/sysinst/msg.mi.de +++ b/usr.sbin/sysinst/msg.mi.de @@ -1,4 +1,4 @@ -/* $NetBSD: msg.mi.de,v 1.47 2024/04/22 14:41:26 nia Exp $ */ +/* $NetBSD: msg.mi.de,v 1.48 2024/04/25 11:25:08 hannken Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -875,8 +875,8 @@ message cur_distsets } message cur_distsets_header -{ Distributionspaket Ausgewählt - ------------------------ ---------- +{ Distributionspaket Ausgewählt + ---------------------------------- ---------- } message set_base diff --git a/usr.sbin/sysinst/msg.mi.en b/usr.sbin/sysinst/msg.mi.en index 867d068ba2fe..77fa1284ca0d 100644 --- a/usr.sbin/sysinst/msg.mi.en +++ b/usr.sbin/sysinst/msg.mi.en @@ -1,4 +1,4 @@ -/* $NetBSD: msg.mi.en,v 1.50 2024/04/22 14:41:26 nia Exp $ */ +/* $NetBSD: msg.mi.en,v 1.51 2024/04/25 11:25:08 hannken Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -809,8 +809,8 @@ message cur_distsets } message cur_distsets_header -{ Distribution set Selected - ------------------------ -------- +{ Distribution set Selected + ---------------------------------- -------- } message set_base diff --git a/usr.sbin/sysinst/msg.mi.es b/usr.sbin/sysinst/msg.mi.es index 6cff5706251a..be15bd35b2d2 100644 --- a/usr.sbin/sysinst/msg.mi.es +++ b/usr.sbin/sysinst/msg.mi.es @@ -1,4 +1,4 @@ -/* $NetBSD: msg.mi.es,v 1.42 2024/04/22 14:41:26 nia Exp $ */ +/* $NetBSD: msg.mi.es,v 1.43 2024/04/25 11:25:08 hannken Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -834,8 +834,8 @@ message cur_distsets } message cur_distsets_header -{ Conjunto de distribución Selecc. - ------------------------ -------- +{ Conjunto de distribución Selecc. + ---------------------------------- -------- } message set_base diff --git a/usr.sbin/sysinst/msg.mi.pl b/usr.sbin/sysinst/msg.mi.pl index 5120e1e0ce2c..b85e5c6993b2 100644 --- a/usr.sbin/sysinst/msg.mi.pl +++ b/usr.sbin/sysinst/msg.mi.pl @@ -1,4 +1,4 @@ -/* $NetBSD: msg.mi.pl,v 1.48 2024/04/22 14:41:26 nia Exp $ */ +/* $NetBSD: msg.mi.pl,v 1.49 2024/04/25 11:25:08 hannken Exp $ */ /* Based on english version: */ /* NetBSD: msg.mi.pl,v 1.36 2004/04/17 18:55:35 atatat Exp */ @@ -806,8 +806,8 @@ message cur_distsets } message cur_distsets_header -{Pakiet dystrybucyjny Uzyc? ---------------------------------- ----- +{Pakiet dystrybucyjny Uzyc? +------------------------------------------- ----- } message set_base diff --git a/usr.sbin/sysinst/util.c b/usr.sbin/sysinst/util.c index 01645b6aab43..419c2485e405 100644 --- a/usr.sbin/sysinst/util.c +++ b/usr.sbin/sysinst/util.c @@ -1,4 +1,4 @@ -/* $NetBSD: util.c,v 1.76 2024/04/22 14:41:26 nia Exp $ */ +/* $NetBSD: util.c,v 1.77 2024/04/25 11:25:08 hannken Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -246,7 +246,7 @@ init_set_status(int flags) i = strlen(msg_all); if (i > len) {len = i; longest = msg_all; } i = strlen(msg_some); if (i > len) {len = i; longest = msg_some; } i = strlen(msg_none); if (i > len) {len = i; longest = msg_none; } - select_menu_width = snprintf(NULL, 0, "%-30s %s", "", longest); + select_menu_width = snprintf(NULL, 0, "%-40s %s", "", longest); /* Give the md code a chance to choose the right kernel, etc. */ md_init_set_status(flags); @@ -870,7 +870,7 @@ set_label(menudesc *menu, int opt, void *arg) } } - wprintw(menu->mw, "%-30s %s", msg_string(desc), selected); + wprintw(menu->mw, "%-40s %s", msg_string(desc), selected); } static int set_sublist(menudesc *menu, void *arg);