0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 18:35:41 +00:00
Files
termux-packages/disabled-packages/aptitude/0103-fill-some-functions-from-libintl.h.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

25 lines
693 B
Diff

--- a/src/aptitude.h
+++ b/src/aptitude.h
@@ -32,9 +32,7 @@
#if ENABLE_NLS
# include <libintl.h>
-# include <cwidget/generic/util/transcode.h>
# define _(Text) gettext (Text)
-# define W_(Text) cwidget::util::transcode (gettext (Text) )
# define N_(Text) Text
/** Strips everything up to and including the first pipe character
@@ -69,8 +67,11 @@
}
# define gettext(Text) Text
# define dgettext(Domain, Text) Text
+# define ngettext(Msg1, Msg2, Count) ((Count == 1) ? Msg1 : Msg2)
#endif
+#include <cwidget/generic/util/transcode.h>
+#define W_(Text) cwidget::util::transcode (gettext (Text) )
// This is used to store the location of the binary as determined by
// argv[0].