]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/progress.cc
add the possibility to disable only the progress reporting stuff as the
[apt.git] / apt-pkg / contrib / progress.cc
index 6ce6e950a788a90d603ac693ac215113c8b43cb6..45e81edcb3ca3ab7b7f877f799cf7fb1aa9b9633 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <iostream>
 #include <stdio.h>
 
 #include <iostream>
 #include <stdio.h>
+#include <cstring>
                                                                        /*}}}*/
 
 using namespace std;
                                                                        /*}}}*/
 
 using namespace std;
@@ -134,7 +135,7 @@ bool OpProgress::CheckChange(float Interval)
 OpTextProgress::OpTextProgress(Configuration &Config) : 
                                NoUpdate(false), NoDisplay(false), LastLen(0) 
 {
 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;
       NoUpdate = true;
    if (Config.FindI("quiet",0) >= 2)
       NoDisplay = true;