summaryrefslogtreecommitdiffstats
path: root/apt-private/acqprogress.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-23 04:10:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-23 04:10:52 +0000
commit85f9a2650850b181208492de61822cf840ee62e5 (patch)
treef2ba509bc1f23e871c5e0e9d569fb82c68280e50 /apt-private/acqprogress.cc
parentReleasing progress-linux version 2.9.1-0.0~progress7.99u1. (diff)
downloadapt-85f9a2650850b181208492de61822cf840ee62e5.tar.xz
apt-85f9a2650850b181208492de61822cf840ee62e5.zip
Merging upstream version 2.9.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'apt-private/acqprogress.cc')
-rw-r--r--apt-private/acqprogress.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-private/acqprogress.cc b/apt-private/acqprogress.cc
index 1f5acdd..b4b16e6 100644
--- a/apt-private/acqprogress.cc
+++ b/apt-private/acqprogress.cc
@@ -9,6 +9,7 @@
// Include files /*{{{*/
#include <config.h>
+#include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/acquire-worker.h>
#include <apt-pkg/acquire.h>
@@ -281,14 +282,14 @@ bool AcqTextStatus::Pulse(pkgAcquire *Owner)
// Draw the current status
if (_config->FindB("Apt::Color", false) == true)
- out << _config->Find("APT::Color::Yellow");
+ out << APT::Configuration::color("Yellow");
if (LastLineLength > Line.length())
clearLastLine();
else
out << '\r';
out << Line << std::flush;
if (_config->FindB("Apt::Color", false) == true)
- out << _config->Find("APT::Color::Neutral") << std::flush;
+ out << APT::Configuration::color("Neutral") << std::flush;
LastLineLength = Line.length();
Update = false;