diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-09-03 21:30:44 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-09-03 21:30:44 +0300 |
commit | 1a1b50378ce0dc3774cab34225c05810a7149afc (patch) | |
tree | ca8f913038c24c550cd5cc98d61acbcc9e81b073 | |
parent | f9e641a65c1644217f8487e6a38df9a7ba062303 (diff) | |
download | librpm-tizen-1a1b50378ce0dc3774cab34225c05810a7149afc.tar.gz librpm-tizen-1a1b50378ce0dc3774cab34225c05810a7149afc.tar.bz2 librpm-tizen-1a1b50378ce0dc3774cab34225c05810a7149afc.zip |
Fix trailing whitespace in --querytags non-verbose mode
-rw-r--r-- | lib/query.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/query.c b/lib/query.c index ecb6f1251..0910d95af 100644 --- a/lib/query.c +++ b/lib/query.c @@ -358,17 +358,19 @@ void rpmDisplayQueryTags(FILE * fp) for (i = 0, t = rpmTagTable; i < rpmTagTableSize; i++, t++) { if (t->name == NULL) continue; - fprintf(fp, "%-20s", t->name + 7); if (rpmIsVerbose()) { static const char * tagtypes[] = { "", "char", "int8", "int16", "int32", "int64", "string", "blob", "argv", "i18nstring" }; - fprintf(fp, " %6d", t->val); + fprintf(fp, "%-20s %6d", t->name + 7, t->val); ttype = t->type & RPM_MASK_TYPE; if (ttype > RPM_NULL_TYPE && ttype <= RPM_MAX_TYPE) fprintf(fp, " %s", tagtypes[ttype]); + } else { + fprintf(fp, "%s", t->name + 7); } + fprintf(fp, "\n"); } |