--- loncom/build/rpmparse.pl 2001/04/03 13:33:22 1.4
+++ loncom/build/rpmparse.pl 2001/11/08 00:17:09 1.10
@@ -1,43 +1,78 @@
#!/usr/bin/perl
-my ($standard,$current)=@ARGV;
+my ($standard,$current,$expected)=@ARGV;
-$standard=~s/[^\/\w\.]//g;
-$current=~s/[^\/\w\.]//g;
+$standard=~s/[^\/\w\.]//g; # cd_rpms.txt
+$current=~s/[^\/\w\.]//g; # rpm -qa --queryformat \
+ # '%{NAME}\t%{VERSION}\t%{RELEASE}\t%{BUILDTIME}'
+$expected=~s/[^\/\w\.]//g; # rpm_list.txt
my %svhash;
my %sbhash;
+my %chash;
my @oldrpms;
my @badversionrpms;
my @newrpms;
my @externalrpms;
+my @barerpms;
+my @developrpms;
+
+my %ignore=(
+ 'LON-CAPA-setup' => 1,
+ 'LON-CAPA-base' => 1,
+ );
open IN, "<$standard";
while(
+
+
+Never install LON-CAPA-setup on a running LON-CAPA machine.
+This RPM package contains pre-installation files such as
+/etc/group and /etc/passwd. You will lose all access to your
+machine if you install this RPM.
+
+If you are doing CVS-based upgrades of your LON-CAPA
+software, then you do not need to upgrade your LON-CAPA-base
+RPM. Upgrading with the LON-CAPA-base RPM
+will cause you to lose many of your system-specific
+configuration settings.
+
+DO NOT UPGRADE YOUR KERNEL UNLESS YOU KNOW WHAT YOU ARE DOING.
+Kernel upgrading involves packages beginning with the word
+"kernel".
+
This file is generated dynamically by make rpmstatuspost
when this command is entered in the CVS:loncom/build directory.
-
Michigan State University
-
Learning Online with CAPA
-
Contact korte\@lon-capa.org
-
-
-About this file
-
Michigan State University
+
Learning Online with CAPA
+
Contact korte\@lon-capa.org
+
+
+Important warnings
+
+Managing software packages on any system, testing different +sets of software packages, tracking their dependencies, and maintaining +configuration information is an inexact science. While the LON-CAPA +recommended set of RPMs is a tested set with no missing dependencies, +we still highly recommend that RPM upgrades are only performed +by those with significant knowledge about standard Linux operating +systems. +
END print <+Differing RPM Versions +END foreach my $rpminfo (@badversionrpms) { print $rpminfo; } print <END print <+ Out-of-date RPMS - +Out-of-date RPMS +END foreach my $rpminfo (@oldrpms) { print $rpminfo; } print <END print <+ Newer than expected RPMS - +Newer than expected RPMS +END foreach my $rpminfo (@newrpms) { print $rpminfo; } print <END print <+ RPMS external to LON-CAPA - +RPMS external to LON-CAPA +END foreach my $rpminfo (@externalrpms) { print $rpminfo; } print <+END +print <+ RPMS from the "bare minimum" set that you are missing + +END +foreach my $rpminfo (@barerpms) { + print $rpminfo; +} +print <+END +print < RPMS from the "development" set that you are missing + +END +foreach my $rpminfo (@developrpms) { + print $rpminfo; +} +print <END