diff options
-rw-r--r-- | rpmqv.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -65,6 +65,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 */ static struct poptOption optionsTable[] = { @@ -109,6 +111,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 }, @@ -494,6 +498,9 @@ int main(int argc, char *argv[]) } } + if (quiet) + rpmSetVerbosity(RPMLOG_WARNING); + #if defined(IAM_RPMBT) || defined(IAM_RPMK) if (0 #if defined(IAM_RPMBT) @@ -649,7 +656,7 @@ int main(int argc, char *argv[]) case MODE_BUILD: case MODE_TARBUILD: { const char * pkg; - while (!rpmIsVerbose()) + if (!quiet) while (!rpmIsVerbose()) rpmIncreaseVerbosity(); switch (ba->buildChar) { |