- honor quiet mode in rpm progress reporting (Daisuke Suzuki)
authorpmatilai <pmatilai>
Fri, 5 May 2006 11:01:27 +0000 (11:01 +0000)
committerpmatilai <pmatilai>
Fri, 5 May 2006 11:01:27 +0000 (11:01 +0000)
apt-pkg/rpm/rpmpm.cc

index c36855c..8b072ed 100644 (file)
@@ -812,7 +812,9 @@ bool pkgRPMLibPM::Process(vector<const char*> &install,
       probFilter |= RPMPROB_FILTER_REPLACENEWFILES;
    }
 
-   if (Interactive == true)
+   if (_config->FindI("quiet",0) >= 1)
+       notifyFlags |= INSTALL_LABEL;
+   else if (Interactive == true)
        notifyFlags |= INSTALL_LABEL | INSTALL_HASH;
    else
        notifyFlags |= INSTALL_LABEL | INSTALL_PERCENT;