--- rpm-4.4.8/rpmqv.c.pix 2007-09-10 13:28:30.000000000 +0200 +++ rpm-4.4.8/rpmqv.c 2007-09-10 17:03:51.000000000 +0200 @@ -68,6 +68,8 @@ enum modes { #define MODES_FOR_TEST (MODES_BT | MODES_IE) #define MODES_FOR_ROOT (MODES_BT | MODES_IE | MODES_QV | MODES_DB | MODES_K) +static int quiet; + /* the structure describing the options we take and the defaults */ /*@unchecked@*/ static struct poptOption optionsTable[] = { @@ -122,6 +124,8 @@ static struct poptOption optionsTable[] NULL }, #endif /* IAM_RPMEIU */ + { "quiet", '\0', 0, &quiet, 0, NULL, NULL}, + { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0, N_("Common options for all rpm modes and executables:"), NULL }, @@ -477,6 +481,9 @@ int main(int argc, const char ** argv) } } + if (quiet) + rpmSetVerbosity(RPMMESS_QUIET); + #if defined(IAM_RPMBT) || defined(IAM_RPMK) if (0 #if defined(IAM_RPMBT) @@ -634,7 +641,7 @@ int main(int argc, const char ** argv) case MODE_BUILD: case MODE_TARBUILD: { const char * pkg; - while (!rpmIsVerbose()) + if (!quiet) while (!rpmIsVerbose()) rpmIncreaseVerbosity(); switch (ba->buildChar) {