[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 29 Sep 2008 22:49:08 -0000
raeburn Mon Sep 29 18:49:08 2008 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Eliminate warnings in CHECKRPMS by checking $protocol is not undef.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.968 loncom/lonnet/perl/lonnet.pm:1.969
--- loncom/lonnet/perl/lonnet.pm:1.968 Fri Sep 12 17:25:54 2008
+++ loncom/lonnet/perl/lonnet.pm Mon Sep 29 18:49:05 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.968 2008/09/12 21:25:54 raeburn Exp $
+# $Id: lonnet.pm,v 1.969 2008/09/29 22:49:05 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -8547,10 +8547,14 @@
push(@{$name_to_host{$name}}, $id);
$hostdom{$id}=$domain;
if ($role eq 'library') { $libserv{$id}=$name; }
- if ($protocol eq 'https') {
- $protocol{$id} = $protocol;
+ if (defined($protocol)) {
+ if ($protocol eq 'https') {
+ $protocol{$id} = $protocol;
+ } else {
+ $protocol{$id} = 'http';
+ }
} else {
- $protocol{$id} = 'http';
+ $protocol{$id} = 'http';
}
}
}