Subject: | |
From: | |
Reply To: | |
Date: | Thu, 11 May 2006 11:18:59 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Fabien Wernli wrote:
> On Thu, May 11, 2006 at 09:34:41AM +0200, Philipp Cain wrote:
>
>>there seems to be two typos in the daily yum.cron script function
>>random_sleep():
>>
>> utime=`cat /proc/uptime | cut -d' ' -f1 | cut -d'.' -f1`
>> if [ utime -ge 72000] ; then
>> RAN=$RANDOM
>>
>>the "if" line should be:
>>
>>if [ $utime -ge 72000 ]; then
>
>
> while we're at it get rid of the UUOC and make it
> | cut -d. -f1 /proc/uptime
Thanks for reporting this Philipp. You weren't the first, but it's
better for a couple to report it than nobody.
Luckly, when this fails, all that happens is it doesn't do the random
sleep, so people were still getting their automatic yum updates without
any random time at the beginning. But we had to get this fixed quickly
before distribution servers and mirrors started getting hammered.
And thanks Fabian. Yes, looking at the code, I'm not quite sure why I
have the double cut's there, I believe I was doing it one step at a
time, and just didn't even notice I could cut out one of the steps.
It's a little too late to get into the errata, but it will be in the
S.L. 3.0.7 yum-conf, as well as the next 4.x yum-conf that comes out.
Thanks
Troy
--
__________________________________________________
Troy Dawson [log in to unmask] (630)840-6468
Fermilab ComputingDivision/CSS CSI Group
__________________________________________________
|
|
|