git: d3f0c032fb8b - main - bsdinstall: restore time selection screen

Yuri Pankov yuripv at FreeBSD.org
Mon Apr 19 18:42:03 UTC 2021


The branch main has been updated by yuripv:

URL: https://cgit.FreeBSD.org/src/commit/?id=d3f0c032fb8b2d2ee8d491fa95108a3790541662

commit d3f0c032fb8b2d2ee8d491fa95108a3790541662
Author:     Yuri Pankov <yuripv at FreeBSD.org>
AuthorDate: 2021-04-19 18:39:59 +0000
Commit:     Yuri Pankov <yuripv at FreeBSD.org>
CommitDate: 2021-04-19 18:39:59 +0000

    bsdinstall: restore time selection screen
    
    Apparently new dialog does not like the height of 2 for the
    timebox widget, use 0 (minimum size) instead.
    
    Do the same for calendar widget as it does not change the
    appearance and to prevent possible future surprises.
    
    Reviewed by:    bapt
    Differential Revision:  https://reviews.freebsd.org/D29720
---
 usr.sbin/bsdinstall/scripts/time | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/bsdinstall/scripts/time b/usr.sbin/bsdinstall/scripts/time
index 67e539b53658..cccd5999a035 100755
--- a/usr.sbin/bsdinstall/scripts/time
+++ b/usr.sbin/bsdinstall/scripts/time
@@ -42,7 +42,7 @@ DATE=$(dialog --backtitle 'FreeBSD Installer' \
 	--cancel-label 'Skip' \
 	--defaultno \
 	--date-format '%Y%m%d%H%M.%S' \
-	--calendar '' 2 40 \
+	--calendar '' 0 40 \
 2>&1 1>&3) && date $DATE
 exec 3>&-
 
@@ -54,7 +54,7 @@ TIME=$(dialog --backtitle 'FreeBSD Installer' \
 	--cancel-label 'Skip' \
 	--defaultno \
 	--time-format '%H%M.%S' \
-	--timebox '' 2 40 \
+	--timebox '' 0 40 \
 2>&1 1>&3) && date $TIME
 exec 3>&-
 


More information about the dev-commits-src-all mailing list