Disable fancypercents by default

This commit is contained in:
Gleb Fotengauer-Malinovskiy 2016-06-17 16:55:16 +03:00
parent c89d404a18
commit adf3585f8a

View File

@ -408,6 +408,7 @@ bool pkgRPMExtPM::ExecRPM(Item::RPMOps op, vector<const char*> &files)
const char *operation; const char *operation;
unsigned int n = 0; unsigned int n = 0;
bool Interactive = _config->FindB("RPM::Interactive",true); bool Interactive = _config->FindB("RPM::Interactive",true);
bool FancyPercent = _config->FindB("RPM::FancyPercent", false);
int quiet = _config->FindI("quiet",0); int quiet = _config->FindI("quiet",0);
string rpmbinary = _config->Find("Dir::Bin::rpm","rpm"); string rpmbinary = _config->Find("Dir::Bin::rpm","rpm");
@ -443,7 +444,7 @@ bool pkgRPMExtPM::ExecRPM(Item::RPMOps op, vector<const char*> &files)
if (Interactive) if (Interactive)
{ {
Args[n++] = "-h"; Args[n++] = "-h";
if (quiet <= 0) if (quiet <= 0 && FancyPercent)
Args[n++] = "--fancypercent"; Args[n++] = "--fancypercent";
} else } else
{ {