On Tue, 2007-09-18 at 15:42 -0400, seth vidal wrote:
> On Tue, 2007-09-18 at 15:42 -0400, James Antill wrote:
> > > then it's just changing the output for a search, right?
> > 
> >  That seems like a much better solution to me, yeh. I just wasn't sure
> > about what the opinion was on breaking "backwards compatability" on the
> > UI like that.
> 
> Yah - I'm not sure that we've made in promises on the screen-scraping
> output of any of the cli. :)
> 
> 
> 
> >  Also if I think having it output the group and url is probably worth
> > it, given that they have said "verbose".
> 
> Can you throw together a patch that does it and some sample output?
> 

nevermind - here it is.

attached.
-sv

diff --git a/output.py b/output.py
index 8aff587..1f9afc1 100644
--- a/output.py
+++ b/output.py
@@ -240,12 +240,13 @@ class YumOutput:
         return(format % (number, space, symbols[depth]))
 
     def matchcallback(self, po, values):
-        self.verbose_logger.log(logginglevels.INFO_2, '\n\n')
-        self.simpleList(po)
-        self.verbose_logger.log(logginglevels.INFO_2, 'Matched from:')
+        msg = '%s.%s : %s' % (po.name, po.arch, po.summary)
+        self.verbose_logger.log(logginglevels.INFO_2, msg)
+        self.verbose_logger.debug('Matched from:')
         for item in values:
-            self.verbose_logger.log(logginglevels.INFO_2, '%s', item)
-
+            self.verbose_logger.debug('%s', item)
+        self.verbose_logger.debug('\n\n')
+        
     def reportDownloadSize(self, packages):
         """Report the total download size for a set of packages"""
         totsize = 0
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to