In current search results for some packages the summary line has a '\n' at the end, so you get blank lines. Attached is a simple patch to fix that up.
I've attached it and it can be merged from: git pull http://people.redhat.com/jantill/gits/yum search-empty-lines -- James Antill <[EMAIL PROTECTED]>
diff --git a/output.py b/output.py
index ad4cfd0..5f53de1 100644
--- a/output.py
+++ b/output.py
@@ -240,7 +240,10 @@ class YumOutput:
return(format % (number, space, symbols[depth]))
def matchcallback(self, po, values):
- msg = '%s.%s : %s' % (po.name, po.arch, po.summary)
+ summary = po.summary
+ if summary[-1] == '\n':
+ summary = summary[:-1]
+ msg = '%s.%s : %s' % (po.name, po.arch, summary)
self.verbose_logger.log(logginglevels.INFO_2, msg)
self.verbose_logger.debug('Matched from:')
for item in values:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Yum-devel mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
