summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-09-03 21:30:44 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-09-03 21:30:44 +0300
commit1a1b50378ce0dc3774cab34225c05810a7149afc (patch)
treeca8f913038c24c550cd5cc98d61acbcc9e81b073 /lib
parentf9e641a65c1644217f8487e6a38df9a7ba062303 (diff)
downloadrpm-1a1b50378ce0dc3774cab34225c05810a7149afc.tar.gz
rpm-1a1b50378ce0dc3774cab34225c05810a7149afc.tar.bz2
rpm-1a1b50378ce0dc3774cab34225c05810a7149afc.zip
Fix trailing whitespace in --querytags non-verbose mode
Diffstat (limited to 'lib')
-rw-r--r--lib/query.c6
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");
}