Don't spew out usage message just because rpm is in verbose mode

The rpm "major mode" could legitimately be "unknown" here for several
reasons like --eval and usage message is inappropriate in that case
regardless of verbosity setting.
This commit is contained in:
Panu Matilainen 2017-10-09 14:50:37 +03:00
parent 7a263645f8
commit fef72734dc
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ int main(int argc, char *argv[])
case MODE_ERASE:
#endif
case MODE_UNKNOWN:
if (poptPeekArg(optCon) != NULL || argc <= 1 || rpmIsVerbose()) {
if (poptPeekArg(optCon) != NULL || argc <= 1) {
printUsage(optCon, stderr, 0);
ec = argc;
}