version 1.2, 2001/04/03 13:25:39
|
version 1.5, 2001/04/03 13:36:27
|
Line 2
|
Line 2
|
|
|
my ($standard,$current)=@ARGV; |
my ($standard,$current)=@ARGV; |
|
|
$standard=~s/[^\/\w]//g; |
$standard=~s/[^\/\w\.]//g; |
$current=~s/[^\/\w]//g; |
$current=~s/[^\/\w\.]//g; |
my %svhash; |
my %svhash; |
my %sbhash; |
my %sbhash; |
|
|
Line 12 my @badversionrpms;
|
Line 12 my @badversionrpms;
|
my @newrpms; |
my @newrpms; |
my @externalrpms; |
my @externalrpms; |
|
|
open IN, $standard; |
open IN, "<$standard"; |
while(<IN>) { |
while(<IN>) { |
chop; |
chop; |
my ($name,$version,$buildtime)=split(/\s+/); |
my ($name,$version,$buildtime)=split(/\s+/); |
Line 21 while(<IN>) {
|
Line 21 while(<IN>) {
|
} |
} |
close IN; |
close IN; |
|
|
open IN, $current; |
open IN, "<$current"; |
while(<IN>) { |
while(<IN>) { |
chop; |
chop; |
my ($name,$version,$buildtime)=split(/\s+/); |
my ($name,$version,$buildtime)=split(/\s+/); |
Line 30 while(<IN>) {
|
Line 30 while(<IN>) {
|
push @badversionrpms,"$name is version $version, should be $svhash{$name}\n"; |
push @badversionrpms,"$name is version $version, should be $svhash{$name}\n"; |
} |
} |
if ($sbhash{$name}<$buildtime) { |
if ($sbhash{$name}<$buildtime) { |
push @newrpms,"$name was built ".localtime($buildtime)." when the expected build time was ".localtime($sbhash{$name})."\n"; |
push @oldrpms,"$name was built ".localtime($buildtime)." when the expected build time was ".localtime($sbhash{$name})."\n"; |
} |
} |
if ($sbhash{$name}>$buildtime) { |
if ($sbhash{$name}>$buildtime) { |
push @newrpms,"$name was built ".localtime($sbhash{$name})." when the expected build time was ".localtime($buildtime)."\n"; |
push @newrpms,"$name was built ".localtime($buildtime)." when the expected build time was ".localtime($sbhash{$name})."\n"; |
} |
} |
} |
} |
else { |
else { |
Line 43 while(<IN>) {
|
Line 43 while(<IN>) {
|
close IN; |
close IN; |
|
|
my $date=`date`; chop $date; |
my $date=`date`; chop $date; |
my $hostname=`hostname`; |
my $hostname=`hostname`; chop $hostname; |
print <<END; |
print <<END; |
<HTML> |
<HTML> |
<HEAD> |
<HEAD> |
Line 53 print <<END;
|
Line 53 print <<END;
|
<FONT SIZE=+2>LON-CAPA Software RPM Status Page (done on $date for $hostname)</FONT> |
<FONT SIZE=+2>LON-CAPA Software RPM Status Page (done on $date for $hostname)</FONT> |
<BR>Michigan State University |
<BR>Michigan State University |
<BR>Learning Online with CAPA |
<BR>Learning Online with CAPA |
<BR>Contact korte@lon-capa.org |
<BR>Contact korte\@lon-capa.org |
<UL> |
<UL> |
<LI>About this file</LI> |
<LI>About this file</LI> |
<LI>Bad RPM Versions</LI> |
<LI>Bad RPM Versions</LI> |