Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-10-08 10:56:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nagios-plugins-zypper (Old)
 and      /work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nagios-plugins-zypper"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/nagios-plugins-zypper/nagios-plugins-zypper.changes  
    2013-09-27 17:48:58.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-10-08 10:56:23.000000000 +0200
@@ -1,0 +2,7 @@
+Mon Oct  7 09:37:25 UTC 2013 - [email protected]
+
+Update to 1.50:
++ also handle "out-of-date" for outdated repositories (bnc#839839)
++ SLE-11-SP1 is not supported any more
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nagios-plugins-zypper.spec ++++++
--- /var/tmp/diff_new_pack.FrAaHv/_old  2013-10-08 10:56:25.000000000 +0200
+++ /var/tmp/diff_new_pack.FrAaHv/_new  2013-10-08 10:56:25.000000000 +0200
@@ -20,7 +20,7 @@
 Summary:        Nagios plugin for checking software updates
 License:        BSD-4-Clause
 Group:          System/Monitoring
-Version:        1.49
+Version:        1.50
 Release:        0
 Url:            http://en.opensuse.org/Nagios-plugins-zypper
 Source0:        check_zypper.pl

++++++ check_zypper.pl ++++++
--- /var/tmp/diff_new_pack.FrAaHv/_old  2013-10-08 10:56:25.000000000 +0200
+++ /var/tmp/diff_new_pack.FrAaHv/_new  2013-10-08 10:56:25.000000000 +0200
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.49';
+$VERSION  = '1.50';
 $DEBUG    = 0;
 
 # variables
@@ -87,7 +87,7 @@
 );
 our %supported_release = (
     'openSUSE' => [ '12.1', '12.2', '12.3', '13.1' ],
-    'SLE'      => [ '10.4', '11.1', '11.2' , '11.3' ],
+    'SLE'      => [ '10.4', '11.2' , '11.3' ],
 );
 $opt_w = 'recommended,optional,unsupported';
 $opt_c = 'security';
@@ -369,12 +369,13 @@
             return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/Error 
message:/);
             return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/A ZYpp 
transaction is already in progress./);
             return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/System 
management is locked/);
-            if (/out-of-date/) {
-                print STDERR "WARNING: outdated repository found\n" if 
($DEBUG);
+            if ((/Repository.*is out-of-date/) || (/Repository.*outdated/)) {
+                print STDERR "WARNING: possibly outdated repository found\n" 
if ($DEBUG);
                 if ( !$opt_o ) {
                     $error   = check_errorcode('security');
-                    $warnstr = "At least one of your Repositories is out of 
date. Please run \"zypper refresh\" as root to update it. ";
+                    $warnstr = "At least one of your Repositories might be out 
of date. Please run \"zypper refresh\" as root to update it. ";
                     $warnstr .= "\n" if ($opt_v);
+                    next;
                 }
             }
             if (/<message type=\"warning\">(.*)<\/message>/) {

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to