summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 20:59:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 20:59:54 +0000
commita6ed3aff8dec2fc2effc95f5f6850286e732a21e (patch)
tree241af701083f4714d261418d57808b01a97c54f7
parentUpdating source format. (diff)
downloadapt-a6ed3aff8dec2fc2effc95f5f6850286e732a21e.tar.xz
apt-a6ed3aff8dec2fc2effc95f5f6850286e732a21e.zip
Using apt binary specific configuration for apt-get.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/progress-linux/0001-apt-options.patch15
-rw-r--r--debian/patches/series1
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0001-apt-options.patch b/debian/patches/progress-linux/0001-apt-options.patch
new file mode 100644
index 0000000..905944a
--- /dev/null
+++ b/debian/patches/progress-linux/0001-apt-options.patch
@@ -0,0 +1,15 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Using apt binary specific configuration for apt-get.
+
+diff -Naurp apt.orig/apt-private/private-cmndline.cc apt/apt-private/private-cmndline.cc
+--- apt.orig/apt-private/private-cmndline.cc
++++ apt/apt-private/private-cmndline.cc
+@@ -472,7 +472,7 @@ static bool ShowCommonHelp(APT_CMD const
+ static void BinarySpecificConfiguration(char const * const Binary) /*{{{*/
+ {
+ std::string const binary = flNotDir(Binary);
+- if (binary == "apt" || binary == "apt-config")
++ if (binary == "apt" || binary == "apt-get" || binary == "apt-config")
+ {
+ if (getenv("NO_COLOR") == nullptr)
+ _config->CndSet("Binary::apt::APT::Color", true);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..80c0f62
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+progress-linux/0001-apt-options.patch