RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson
Root: /v/rpm/cvs Email: jbj@rpm5.org
Module: rpm Date: 22-Sep-2007 17:31:33
Branch: HEAD Handle: 2007092216313300
Modified files:
rpm/lib query.c
Log:
- rpm.org: rtrim on --querytag spew.
Summary:
Revision Changes Path
2.183 +3 -3 rpm/lib/query.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/lib/query.c
============================================================================
$ cvs diff -u -r2.182 -r2.183 query.c
--- rpm/lib/query.c 20 Sep 2007 16:08:08 -0000 2.182
+++ rpm/lib/query.c 22 Sep 2007 15:31:33 -0000 2.183
@@ -381,18 +381,18 @@
for (i = 0, t = rpmTagTable; i < rpmTagTableSize; i++, t++) {
if (t->name == NULL)
continue;
- fprintf(fp, "%-20s", t->name + 7);
if (rpmIsVerbose()) {
/*@observer@*/
static const char * tagtypes[] = {
"", "char", "int8", "int16", "int32", "int64",
"string", "blob", "argv", "i18nstring", "asn1", "openpgp"
};
- 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");
}
@@ .
Received on Sat Sep 22 17:31:33 2007