SCIENTIFIC-LINUX-DEVEL Archives

November 2013

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
William Taylor <[log in to unmask]>
Reply To:
William Taylor <[log in to unmask]>
Date:
Mon, 25 Nov 2013 15:18:28 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
On 11/20/2013 2:41 PM, William Taylor wrote:
> On 11/20/2013 6:41 AM, Pat Riehecky wrote:
>> On 11/19/2013 12:14 AM, Elias Persson wrote:
>>> On 2013-11-18 21:38, Paul Robert Marino wrote:
>>>> well if you want that then you need to create a bash script for cron
>>>> to execute
>>>> in the script you put the output of the yum command to a variable via
>>>> a back tick and then you use an if statement to check the results of
>>>> $? to determine whether to echo the contents of the variable to
>>>> standard out triggering cron to send an email, or to unset the
>>>> variable and exit.
>>>>
>>> That seems to work.
>>>
>>>   output="$(yum --disablerepo='*' install kedddrnel 2>&1)"
>>>   echo "RC: $?"
>>>   echo "Output:"
>>>   echo "$output"
>>>
>>> (at least in bash)
>> I believe I've gotten the behaviour fixed.
>>
>> I've tossed the updated package into SL6's testing repo (sl-testing).
>>
>> Source at:
>> https://cdcvs.fnal.gov/redmine/projects/scientificlinux/repository/yum-autoupdate
>>
>>
> Thanks Pat! I'm still testing but noticed this bug:
>
> --- /etc/cron.daily/yum-autoupdate.orig 2013-11-20 14:38:49.562221379 -0800
> +++ /etc/cron.daily/yum-autoupdate      2013-11-20 14:39:06.775719524 -0800
> @@ -165,7 +165,7 @@
>                 if [ "$DEBUG" = "true" ] ; then
>                         echo "The yum --skip-broken enabled"
>                 fi
> -               SKIP_BROKEN='--security'
> +               SKIP_BROKEN='--skip-broken'
>         else
>                 if [ "$DEBUG" = "true" ] ; then
>                         echo "The yum will not use --skip-broken"
>
Pat did you get this? Were you able to update the package?

Thanks,
  William

ATOM RSS1 RSS2