Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
print_apt_packages: Go back to apt-cache for non-installed packages
Unfortunately, /var/lib/dpkg/status on recent-ish Debian versions at least only contains the *installed* packages, rendering this solution broken. What we do instead is: 1. Remove a useless newline from each package, so our limit would now let more full package data sets through 2. Increase the limit by 5x This yields a completion that runs in ~800ms instead of ~700ms on a raspberry pi, but gives ~10x the candidates, compared to the old apt-cache version. This partially reverts 96deaae
- Loading branch information