[Yum-devel] Making yum-cron send mail only if something changed

Ville Skyttä ville.skytta at iki.fi
Wed Sep 28 18:29:47 UTC 2011


I use yum-cron always in CHECK_ONLY (or DOWNLOAD_ONLY) modes, and would
prefer if it would not send mail if nothing has changed since the last
run.  Sometimes there are reasons why I want to delay applying some
available updates even for weeks, and the daily mails of them tend to
become annoying which then again leads to them being ignored and
possibly some other updates than the ones I wanted to delay being
missed.  I suppose I could use exclude= to suppress output for some
packages but somehow I don't feel comfortable with that and I don't know
if one can use exclude= for specific NEVRs, i.e. if I want to not be
notified of a particular NEVR of something, but would like to be
notified about newer ones of that N.

The attached patch is mostly for discussion purposes, I haven't tested
this particular one actually at all, but I have done some testing of
similar changes applied over CentOS 5.x's yum-cron and they seem to work
nicely for me.  Please note that as said, I run only in
CHECK_ONLY/DOWNLOAD_ONLY modes so maybe the patch is not something that
is not desirable in all other modes (or maybe it doesn't hurt, haven't
thought about it much at all).

Thoughts, comments?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yum-cron-only-if-changed.patch
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20110928/0d846102/attachment-0001.ksh>

More information about the Yum-devel mailing list