[Yum] About the log level and information messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Attached is a simple patch that checks to see if the input is a tty (and 
that -y is off) and if so, prints out the actions yum will take.  I 
think this is a reasonable short-term fix: there's no reason why yum 
should print out ask the user for an answer to "Is this ok?" from a tty 
without printing out what it is asking for advice about.  The other 
solution would be to assume the -y option when the log level is 1.

Note that this patch won't break cron scripts since behavior when yum is 
run without being attached to a tty is unchanged.

David

>>When using it, I found its messages were to verbose and annoying, so i 
>>change the debuglevel flag into yum.conf to 1.
>>This was quite well, but i was surprise when I see some messages like this :
>>
>>[lelfe@syunikiss lelfe]$ sudo yum update
>>Is this ok [y/N]:
>>
>>Errrr.... ? What's ok ?
>>Of course the question concerned the packages that will be 
>>updated/installed/removed, but they were not displayed, due to the too 
>>small debug level.
>>    
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-log-level1-output.patch
Type: text/x-patch
Size: 2975 bytes
Desc: not available
Url : http://lists.dulug.duke.edu/pipermail/yum/attachments/20040326/3facd6da/yum-log-level1-output.bin

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux