diff options
author | Christian Blichmann <mail@blichmann.eu> | 2022-02-01 20:59:57 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-04-12 15:56:56 +0200 |
commit | 690993b1b9b4a932ca5bf5374c59e4cf88f18732 (patch) | |
tree | 7620687642dc3b544e1360dbd97540db39e3a71f /test | |
parent | 81c65f7e86b8f16eaaa91d9c205a594b0ebde159 (diff) |
Columnar output for package lists similar to 'ls'
This change makes it a bit easier to quickly grasp the changes
about to be performed by apt.
It displays package lists in a columnar format by default,
similar to what `ls` produces for files.
A new long option `--no-list-columns` and an associated
`APT::Get::List-Columns` config setting control the behavior.
Usage example, with 60 column wide terminal:
```
$ sudo apt upgrade |
Reading package lists... Done |
Building dependency tree... Done |
Reading state information... Done |
Calculating upgrade... Done |
The following packages were automatically installed and are |
no longer required: |
libappindicator1 libindicator7 |
libdbusmenu-gtk4 linux-image-5.14.0-4-amd64 |
Use 'sudo apt autoremove' to remove them. |
The following packages have been kept back: |
criu linux-headers-amd64 nvidia-settings |
libxnvctrl0 nvidia-modprobe xwayland |
0 upgraded, 0 newly installed, 0 to remove and 6 not upgrade|
d. |
```
The effect becomes more pronounced with more packages (e.g. when
doing a dist-upgrade).
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/framework | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/integration/framework b/test/integration/framework index 0570d5c8e..57d6849da 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -444,6 +444,7 @@ _setupprojectenvironment() { echo "Dir::Etc \"etc/apt\";" >> aptconfig.conf echo "Dir::Log \"var/log/apt\";" >> aptconfig.conf echo "APT::Get::Show-User-Simulation-Note \"false\";" >> aptconfig.conf + echo "APT::Get::List-Columns \"false\";" >> aptconfig.conf echo "Dir::Bin::Methods \"${TMPWORKINGDIRECTORY}/rootdir/usr/lib/apt/methods\";" >> aptconfig.conf # either store apt-key were we can access it, even if we run it as a different user #cp "${APTCMDLINEBINDIR}/apt-key" "${TMPWORKINGDIRECTORY}/rootdir/usr/bin/" |