[LON-CAPA-cvs] cvs: loncom /build CHECKRPMS

raeburn raeburn@source.lon-capa.org
Fri, 13 May 2011 00:21:45 -0000


raeburn		Fri May 13 00:21:45 2011 EDT

  Modified files:              
    /loncom/build	CHECKRPMS 
  Log:
  - Add Id
  - sles11 (and future sles12) use zypper
  - update documentation  
  
  
Index: loncom/build/CHECKRPMS
diff -u loncom/build/CHECKRPMS:1.12 loncom/build/CHECKRPMS:1.13
--- loncom/build/CHECKRPMS:1.12	Mon Oct  4 15:07:17 2010
+++ loncom/build/CHECKRPMS	Fri May 13 00:21:45 2011
@@ -3,6 +3,8 @@
 # The LearningOnline Network with CAPA
 # Checks status of RPM packages on system.
 #
+# $Id: CHECKRPMS,v 1.13 2011/05/13 00:21:45 raeburn Exp $
+#
 # Copyright Michigan State University Board of Trustees
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -40,9 +42,9 @@
 
 The utility which is used to complete the check depends on the distro:
 
-fedora, rhel 5/5+, centos, scientific - yum
+fedora, rhel >= 5, centos, scientific - yum
 suse 9.X and sles9 - you
-suse 10.2,10.3,11.1 - zypper 
+suse 10.2,10.3,11.1,11.2,11.3,11.4,sles11 - zypper 
 sles10,suse10.1 - rug
 rhel 4 - up2date
 debian, ubuntu - apt-get
@@ -107,6 +109,10 @@
     $cmd = 'rug up';
     &prepare_msg($tmpfile,$cmd);
     ($send,$addsubj) = &check_with_rug($tmpfile);
+} elsif ($distro =~ /^sles(\d+)$/) {
+    $cmd = 'zypper up';
+    &prepare_msg($tmpfile,$cmd);
+    ($send,$addsubj) = &check_with_zypper($tmpfile);
 } elsif ($distro =~ /^rhes(\d+)$/) {
     my $version = $1;
     if ($version == 4) {