Просмотр исходного кода

add the possibility to disable only the progress reporting stuff as the
quiet level 1 does this, but also disables other stuff we might want to
test against in a testcase

David Kalnischkies лет назад: 15
Родитель
Сommit
2f6557b96c
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      apt-pkg/contrib/progress.cc
  2. 1 0
      doc/examples/configure-index

+ 1 - 1
apt-pkg/contrib/progress.cc

@@ -135,7 +135,7 @@ bool OpProgress::CheckChange(float Interval)
 OpTextProgress::OpTextProgress(Configuration &Config) : 
                                NoUpdate(false), NoDisplay(false), LastLen(0) 
 {
-   if (Config.FindI("quiet",0) >= 1)
+   if (Config.FindI("quiet",0) >= 1 || Config.FindB("quiet::NoUpdate", false) == true)
       NoUpdate = true;
    if (Config.FindI("quiet",0) >= 2)
       NoDisplay = true;

+ 1 - 0
doc/examples/configure-index

@@ -17,6 +17,7 @@
 */
 
 quiet "0";
+quiet::NoUpdate "true"; // never update progress information - included in -q=1
 
 // Options for APT in general
 APT