summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpmqv.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 09ca98642..31081587d 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -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) {