]> git.saurik.com Git - apt.git/blobdiff - apt-private/acqprogress.cc
honor option to disable pulses for the testcases
[apt.git] / apt-private / acqprogress.cc
index af2d0f46116d466036d6c12323bccb886655ead9..3aafea4f2a31de10217ad83d06d0200897962fc2 100644 (file)
@@ -30,10 +30,13 @@ using namespace std;
 // AcqTextStatus::AcqTextStatus - Constructor                          /*{{{*/
 // ---------------------------------------------------------------------
 /* */
-AcqTextStatus::AcqTextStatus(unsigned int &ScreenWidth,unsigned int Quiet) :
-    ScreenWidth(ScreenWidth), ID(0), Quiet(Quiet)
+AcqTextStatus::AcqTextStatus(unsigned int &ScreenWidth,unsigned int const Quiet) :
+    pkgAcquireStatus(), ScreenWidth(ScreenWidth), ID(0), Quiet(Quiet)
 {
    BlankLine[0] = 0;
+   // testcases use it to disable pulses without disabling other user messages
+   if (_config->FindB("quiet::NoUpdate", false) == true)
+      this->Quiet = 1;
 }
                                                                        /*}}}*/
 // AcqTextStatus::Start - Downloading has started                      /*{{{*/