msys2 / msys2-pacman

A friendly fork of https://gitlab.archlinux.org/pacman/pacman
GNU General Public License v2.0
21 stars 12 forks source link

Bad detection of columns available for table display #11

Open silverqx opened 2 years ago

silverqx commented 2 years ago

I have set VerbosePkgLists in the /etc/pacman.conf, but even when I have enough columns pacman shows me warning: insufficient columns available for table display.

tput cols shows me 123 and I'm using latest Windows Terminal.

I think there is enough space to show the table in following output:

user@example MSYS /etc
$ pacman -Syuu
:: Synchronizing package databases...
 mingw32 is up to date
 mingw64 is up to date
 ucrt64 is up to date
 clang64 is up to date
 msys is up to date
:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

warning: insufficient columns available for table display
Packages (93) autoconf-2.71-2  autoconf2.13-2.13-4  autogen-5.18.16-2  automake-wrapper-11-2  automake1.10-1.10.3-5
              automake1.11-1.11.6-5  automake1.12-1.12.6-5  automake1.13-1.13.4-6  automake1.14-1.14.1-5
              automake1.15-1.15.1-3  automake1.16-1.16.3-2  automake1.6-1.6.3-4  automake1.7-1.7.9-4  automake1.8-1.8.5-5
              automake1.9-1.9.6-4  btyacc-20210619-2  expat-2.4.2-1  gdb-11.1-1  gettext-0.19.8.1-2
              gettext-devel-0.19.8.1-2  libasprintf-0.19.8.1-2  libexpat-2.4.2-1  libgettextpo-0.19.8.1-2
              libintl-0.19.8.1-2  libltdl-2.4.6-12  libopenssl-1.1.1.m-1  libtool-2.4.6-12  libunrar-6.1.3-2
              libunrar-devel-6.1.3-2  libxxhash-0.8.1-1  libzstd-1.5.1-1  m4-1.4.19-2
              mingw-w64-clang-x86_64-clang-13.0.0-4  mingw-w64-clang-x86_64-clang-analyzer-13.0.0-4
              mingw-w64-clang-x86_64-clang-tools-extra-13.0.0-4  mingw-w64-clang-x86_64-compiler-rt-13.0.0-4
              mingw-w64-clang-x86_64-crt-git-9.0.0.6364.2194d504e-1  mingw-w64-clang-x86_64-double-conversion-3.1.7-1
              mingw-w64-clang-x86_64-freetype-2.11.1-2  mingw-w64-clang-x86_64-glib2-2.70.2-2
              mingw-w64-clang-x86_64-headers-git-9.0.0.6364.2194d504e-1
              mingw-w64-clang-x86_64-libmangle-git-9.0.0.6364.2194d504e-1
              mingw-w64-clang-x86_64-libwinpthread-git-9.0.0.6364.2194d504e-1  mingw-w64-clang-x86_64-lld-13.0.0-4
              mingw-w64-clang-x86_64-llvm-13.0.0-4  mingw-w64-clang-x86_64-openssl-1.1.1.m-1
              mingw-w64-clang-x86_64-qt5-webchannel-5.15.2+kde+r5-1
              mingw-w64-clang-x86_64-tools-git-9.0.0.6364.2194d504e-1
              mingw-w64-clang-x86_64-winpthreads-git-9.0.0.6364.2194d504e-1
              mingw-w64-clang-x86_64-winstorecompat-git-9.0.0.6364.2194d504e-1  mingw-w64-clang-x86_64-zstd-1.5.1-1
              mingw-w64-ucrt-x86_64-clang-13.0.0-4  mingw-w64-ucrt-x86_64-crt-git-9.0.0.6364.2194d504e-1
              mingw-w64-ucrt-x86_64-double-conversion-3.1.7-1  mingw-w64-ucrt-x86_64-freetype-2.11.1-2
              mingw-w64-ucrt-x86_64-glib2-2.70.2-2  mingw-w64-ucrt-x86_64-headers-git-9.0.0.6364.2194d504e-1
              mingw-w64-ucrt-x86_64-libmangle-git-9.0.0.6364.2194d504e-1
              mingw-w64-ucrt-x86_64-libwinpthread-git-9.0.0.6364.2194d504e-1  mingw-w64-ucrt-x86_64-lld-13.0.0-4
              mingw-w64-ucrt-x86_64-llvm-13.0.0-4  mingw-w64-ucrt-x86_64-openssl-1.1.1.m-1
              mingw-w64-ucrt-x86_64-qt5-webchannel-5.15.2+kde+r5-1  mingw-w64-ucrt-x86_64-tools-git-9.0.0.6364.2194d504e-1
              mingw-w64-ucrt-x86_64-winpthreads-git-9.0.0.6364.2194d504e-1
              mingw-w64-ucrt-x86_64-winstorecompat-git-9.0.0.6364.2194d504e-1  mingw-w64-ucrt-x86_64-zstd-1.5.1-1
              mingw-w64-x86_64-crt-git-9.0.0.6364.2194d504e-1  mingw-w64-x86_64-double-conversion-3.1.7-1
              mingw-w64-x86_64-freetype-2.11.1-2  mingw-w64-x86_64-glib2-2.70.2-2
              mingw-w64-x86_64-headers-git-9.0.0.6364.2194d504e-1  mingw-w64-x86_64-libmangle-git-9.0.0.6364.2194d504e-1
              mingw-w64-x86_64-libwinpthread-git-9.0.0.6364.2194d504e-1  mingw-w64-x86_64-openssl-1.1.1.m-1
              mingw-w64-x86_64-qt5-webchannel-5.15.2+kde+r5-1  mingw-w64-x86_64-tools-git-9.0.0.6364.2194d504e-1
              mingw-w64-x86_64-winpthreads-git-9.0.0.6364.2194d504e-1
              mingw-w64-x86_64-winstorecompat-git-9.0.0.6364.2194d504e-1  mingw-w64-x86_64-zstd-1.5.1-1
              msys2-keyring-1~20211228-1  openssl-1.1.1.m-1  perl-5.32.1-2  python-3.9.9-2  quilt-0.66-3
              reflex-20210510-2  scons-3.1.2-7  sed-4.8-2  swig-4.0.2-2  tar-1.34-2  unrar-6.1.3-2  xxhash-0.8.1-1
              zstd-1.5.1-1

Total Download Size:    328.12 MiB
Total Installed Size:  2583.56 MiB
Net Upgrade Size:        21.46 MiB

:: Proceed with installation? [Y/n]

Am I wrong?