From 08a7a5828a11b601a048556bc7becb4e47456626 Mon Sep 17 00:00:00 2001 From: stevetraylen Date: Apr 05 2010 17:20:03 +0000 Subject: rhbz#579488 --- diff --git a/fetch-crl-syntax-randomwait.patch b/fetch-crl-syntax-randomwait.patch new file mode 100644 index 0000000..702dd6d --- /dev/null +++ b/fetch-crl-syntax-randomwait.patch @@ -0,0 +1,12 @@ +diff -uNr fetch-crl-2.8.3.ORIG/edg-fetch-crl fetch-crl-2.8.3/edg-fetch-crl +--- fetch-crl-2.8.3.ORIG/edg-fetch-crl 2010-04-05 19:12:49.000000000 +0200 ++++ fetch-crl-2.8.3/edg-fetch-crl 2010-04-05 19:13:23.000000000 +0200 +@@ -589,7 +589,7 @@ + # + # Sleep for a random wait within a maximum if requested. + # +-if [ "X${RandomWait}" != "X" -a ${RandomWait} -ne 0 ] ; then ++if [ "X${RandomWait}" != "X" ] && [ ${RandomWait} -ne 0 ] ; then + timeStamp=`${date} +%Y%m%dT%H%M%S%z` + PrintInformation "Sleeping CRL retrieval process at ${timeStamp} for up to ${RandomWait} minutes" + sleep `expr ${RANDOM:-0} % \( ${RandomWait} \* 60 \)` diff --git a/fetch-crl.spec b/fetch-crl.spec index e569106..d0fece7 100644 --- a/fetch-crl.spec +++ b/fetch-crl.spec @@ -4,7 +4,7 @@ Name: fetch-crl Version: 2.8.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Downloads Certificate Revocation Lists Group: Applications/System @@ -12,6 +12,10 @@ License: EU Datagrid URL: https://dist.eugridpma.info/distribution/util/%{name} Source: https://dist.eugridpma.info/distribution/util/%{name}/%{name}-%{version}.tar.gz +# basic shell syntax bug. +#https://bugzilla.redhat.com/show_bug.cgi?id=579488 +Patch0: fetch-crl-syntax-randomwait.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -29,6 +33,7 @@ It assumes that the installed CA files follow the hash.crl_url convention. %prep %setup -q +%patch0 -p1 %build @@ -78,10 +83,13 @@ fi %changelog +* Sun Apr 5 2010 Steve Traylen - 2.8.3-2 +- Add patch fetch-crl-syntax-randomwait + https://bugzilla.redhat.com/show_bug.cgi?id=579488 * Sun Mar 28 2010 Steve Traylen - 2.8.3-1 - New upstream 2.8.3 - Removed edg-fetch-crl-2.8.2-getopts.patch and - fetch-crl-2.6.6-selinux.patch since both now present in 2.8.3. + fetch-crl-2.6.6-selinux.patch since both now present in 2.8.3 * Sat Mar 27 2010 Steve Traylen - 2.8.2-2 - Add edg-fetch-crl-2.8.2-getopts.patch for rhbz#577387, Jason Smith.