[LON-CAPA-cvs] cvs: loncom /build CHECKRPMS_custom
harris41
lon-capa-cvs@mail.lon-capa.org
Wed, 18 Dec 2002 14:39:03 -0000
harris41 Wed Dec 18 09:39:03 2002 EDT
Modified files:
/loncom/build CHECKRPMS_custom
Log:
BUG 1069; -w 10 added to ping command (give up after 10 seconds); also
removing install.lon-capa.org since customized releases of CHECKRPMS
should not advertise install.lon-capa.org as an RPM mirror
Index: loncom/build/CHECKRPMS_custom
diff -u loncom/build/CHECKRPMS_custom:1.1 loncom/build/CHECKRPMS_custom:1.2
--- loncom/build/CHECKRPMS_custom:1.1 Fri Nov 22 14:10:20 2002
+++ loncom/build/CHECKRPMS_custom Wed Dec 18 09:39:03 2002
@@ -128,7 +128,6 @@
# ---------------- The FTP servers (and their directory paths) to check against
my @serverpaths_to_try =
(
- 'ftpmirror:loncapa@install.lon-capa.org/pub/redhat/linux/updates/',
'mirror.pa.msu.edu/linux/redhat/linux/updates/',
'distro.ibiblio.org/pub/linux/distributions/redhat/updates/',
'limestone.uoregon.edu/redhat/updates/',
@@ -212,7 +211,7 @@
$FTPSERVER_noauth=~s/^.*?\@//;
print($out
"Trying $FTPSERVER_noauth...\n"); # Notify of attempts with ip name.
- `ping -c 1 $FTPSERVER_noauth 2>/dev/null`; # Ping ftp server (you there?).
+ `ping -c 1 -w 10 $FTPSERVER_noauth 2>/dev/null`;#Ping ftp server (u there?)
if ($?==0) # If the ftp server can be pinged.
{
print($out "$FTPSERVER found...\n"); # Tell user ftp server is found.