0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 14:25:40 +00:00
Files
termux-packages/disabled-packages/aptitude/0106-cxx11-narrowing.patch
Ted Stein 47f0921d9e rmpkg(main/aptitude): Remove redundant/broken apt alternative
`aptitude`'s unique functionality is a TUI alternative to `apt`. It
hardcodes the belief that you must be root to change packages, and
attempting to make any changes prompts you to become root, which
obviously won't work for most users. I didn't try, but if it did work,
it would obviously do something bad.

Its `apt`-alike non-interactive use (`aptitude install`, etc) appears to
work fine without root, but looks to be basically identical to `apt`
proper.
2025-04-01 18:24:15 +08:00

14 lines
627 B
Diff

--- a/src/pkg_columnizer.cc
+++ b/src/pkg_columnizer.cc
@@ -71,8 +71,8 @@
{30, false, false}, // origin
{10, true, true}, // archive
{9, false, false}, // sizechange
- {strlen(PACKAGE), false, false}, // progname
- {strlen(VERSION), false, false}, // progver
+ {static_cast<unsigned int>(strlen(PACKAGE)), false, false}, // progname
+ {static_cast<unsigned int>(strlen(VERSION)), false, false}, // progver
{12, false, false}, // brokencount
{16, false, false}, // diskusage, example (max): "Disk: -2,587 kB "
{22, false, false}, // downloadsize, example (max): " DL: 2,586 kB/2,587 kB"