1
0
Fork 0

Using apt binary specific configuration for apt-get.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-22 23:38:14 +02:00
parent 7d511e166f
commit c5b38e9bd1
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
2 changed files with 16 additions and 0 deletions

View file

@ -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
@@ -492,7 +492,7 @@ static void BinarySpecificConfiguration(
{
_config->CndSet("Binary::apt-cdrom::APT::Internal::OpProgress::EraseLines", false);
}
- if (binary == "apt" || binary == "apt-config")
+ if (binary == "apt" || binary == "apt-get" || binary == "apt-config")
{
if (getenv("NO_COLOR") == nullptr && getenv("APT_NO_COLOR") == nullptr)
_config->CndSet("Binary::apt::APT::Color", true);

1
debian/patches/series vendored Normal file
View file

@ -0,0 +1 @@
progress-linux/0001-apt-options.patch