From 93a686d807a7f76482f505553ff9934565796b7b Mon Sep 17 00:00:00 2001 From: Wendy Liang Date: Fri, 4 Mar 2016 16:25:57 -0800 Subject: [PATCH 1/1] smart:query:enable other packages information to --show-format Signed-off-by: Wendy Liang --- smart/commands/query.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/smart/commands/query.py b/smart/commands/query.py index 9265cd9..e8d5db1 100644 --- a/smart/commands/query.py +++ b/smart/commands/query.py @@ -650,7 +650,13 @@ class TextOutput(NullOutput): if self.opts.show_format: info = pkg.loaders.keys()[0].getInfo(pkg) tags = dict(name=pkg.name, version=pkg.version, - group=info.getGroup(), summary=info.getSummary()) + group=info.getGroup(), summary=info.getSummary(), + source=info.getSource(), location=info.getURLs(), + buildtime=info.getBuildTime(), + installedsize=info.getInstalledSize(), + description=info.getDescription(), + referenceurls=info.getReferenceURLs(), + license=info.getLicense()) fmt = self.opts.show_format.safe_substitute(tags) fmt = fmt.replace('\\t', "\t").replace('\\n', "\n") sys.stdout.write(fmt) -- 2.1.1