[Yum-devel] yum-cron and handling errors and warnings

Matthew Miller mattdm at mattdm.org
Fri Jul 29 14:16:27 UTC 2011


In bulinux-autoupdate, which is approaching a decade in age, we check for
errors and warnings from yum update transactions by saving standard error
and standard output to files. And then, if there is output on stderr,
awesomely, we do stuff like `egrep -iq '(error|not signed)'` to decide
whether it's errors or warnings.

This is used to generate a helpful subject line and (perhaps more
importantly) to generate meaningful log messages.

This all actually works very well, but makes me wince. Is there a better way
in these modern times?


-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>


More information about the Yum-devel mailing list