[Yum-devel] [PATCH] Honor --queryformat when using --output=ascii-tree
James Laska
jlaska at redhat.com
Fri Jan 20 12:36:04 UTC 2012
On Thu, 2012-01-19 at 17:18 -0500, James Antill wrote:
> On Thu, 2012-01-19 at 14:15 -0500, James Laska wrote:
> > While using the ascii-tree output format, I found it helpful to support
> > the --queryformat option to allow customized output using QUERYTAGS.
>
> Actually, it was almost perfect. :)
> Pushed.
- print "%s%s [%s]" % (indent, str(req), str(val))
+ self.pkg = req
+ self.name = req.name
+ print "%s%s [%s]" % (indent, self.fmt_queryformat(), str(val))
Aha! Much simpler, I didn't think of that.
Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20120120/c60134f0/attachment.asc>
More information about the Yum-devel
mailing list