Open
Description
Steps to reproduce
- Select "Additional packages"
- Select the sqlite-doc package
- Notice that the Description field is truncated: "most of the static HTML files that comprise this website,"
Analysis
The additional-packages code runs pacman -S --info
using pty. On my system, pty seems to default to 80 columns:
(Pdb) SysCommand('tput cols')
80
This causes the description field to be truncated because archinstall's parsing code is line-based and because pacman formats its output differently depending on the number of columns.
We can see the truncation in action by running with different COLUMNS
values:
(Pdb) SysCommand('pacman -S --info sqlite-doc')
Repository : core-testing
Name : sqlite-doc
Version : 3.50.1-1
Description : most of the static HTML files that comprise this website,
including all of the SQL Syntax and the C/C++ interface specs
and other miscellaneous documentation
[...snip...]
(Pdb) SysCommand('pacman -S --info sqlite-doc', environment_vars={'COLUMNS': '120'})
Repository : core-testing
Name : sqlite-doc
Version : 3.50.1-1
Description : most of the static HTML files that comprise this website, including all of the SQL Syntax and the
C/C++ interface specs and other miscellaneous documentation
[...snip...]
(Pdb) SysCommand('pacman -S --info sqlite-doc', environment_vars={'COLUMNS': '500'})
Repository : core-testing
Name : sqlite-doc
Version : 3.50.1-1
Description : most of the static HTML files that comprise this website, including all of the SQL Syntax and the C/C++ interface specs and other miscellaneous documentation
[...snip...]
This particular bug seems cosmetic, but I wanted to at least document it because it could affect other areas that rely on the parsing of SysCommand
output.
In the long run, using libalpm would likely increase the correctness and performance of pacman interactions.
Version info
Metadata
Metadata
Assignees
Labels
No labels