[Yum-devel] yum shell and exit codes and plugins

James Antill james at fedoraproject.org
Fri Jul 29 17:02:01 UTC 2011


On Fri, 2011-07-29 at 11:17 -0500, Jason L Tibbitts III wrote:
> >>>>> "MM" == Matthew Miller <mattdm at mattdm.org> writes:
> 
> MM> Can you send me what you're patching it to be?
> 
> I haven't patched it into F15 yet (still preparing the rollout) but this
> is what I used in the F13 version:
> 
> --- 0yum.cron.quiet     2010-02-10 13:42:47.000000000 -0600
> +++ 0yum.cron   2010-05-21 15:54:50.303916370 -0500
> @@ -115,7 +115,7 @@
>      /usr/bin/yum $YUM_PARAMETER -R $RANDOMWAIT -e ${ERROR_LEVEL:-0} -d ${DEBUG_LEVEL:-0} -y update yum
>      /usr/bin/yum $YUM_PARAMETER -e ${ERROR_LEVEL:-0} -d ${DEBUG_LEVEL:-0} -y shell $DAILYSCRIPT
>    fi
> -} >> $YUMTMP 2>&1
> +} | grep -v 'already installed' >> $YUMTMP 2>&1
>  
>  if [ ! -z "$MAILTO" ] && [ -x /bin/mail ]; then 
>  # if MAILTO is set, use mail command (ie better than standard mail with cron output) 
> 
> 
> Honestly, though, this is probably more a bug in yum; there should
> probably be a way to disable that message.

 Can you do some tests with the two patches I posted, to make sure it
solves your problem?



More information about the Yum-devel mailing list