[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 01/02: Remove , from check_packages output.

Bernd Zeimetz bernd at bzed.de
Tue Dec 2 09:29:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

bzed pushed a commit to branch wheezy-backports
in repository pkg-nagios-plugins-contrib.

commit f37a1a9cf214257ed8c1ec5edfcf9e527c7b89b4
Author: Bernd Zeimetz <bernd at bzed.de>
Date:   Tue Dec 2 10:29:34 2014 +0100

    Remove , from check_packages output.
---
 debian/patches/dsa/check_packages_,_fix | 30 ++++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/dsa/check_packages_,_fix b/debian/patches/dsa/check_packages_,_fix
new file mode 100644
index 0000000..a000369
--- /dev/null
+++ b/debian/patches/dsa/check_packages_,_fix
@@ -0,0 +1,30 @@
+--- a/dsa/checks/dsa-check-packages
++++ b/dsa/checks/dsa-check-packages
+@@ -334,7 +334,7 @@ for my $form (@reportform) {
+ 	push @perfout, sprintf($form->{'perf'}, $num);
+ 	next unless ($num > 0);
+ 	if ($form->{'listpackages'}) {
+-		my $list = join(", ", keys %$pkgs);
++		my $list = join(" ", keys %$pkgs);
+ 		push @longout, sprintf($form->{'long'}, $num, $list);
+ 	} else {
+ 		push @longout, sprintf($form->{'long'}, $num);
+@@ -344,15 +344,15 @@ for my $form (@reportform) {
+ };
+ if (scalar keys %$packages) {
+ 	record('WARNING');
+-	unshift @shortout, "unk: ".join(", ", keys %$packages);
++	unshift @shortout, "unk: ".join(" ", keys %$packages);
+ 	for my $status (sort {$b cmp $a} keys %$packages) {
+ 		my $pkgs = $packages->{$status};
+-		my $list = join(", ", keys %$pkgs);
++		my $list = join(" ", keys %$pkgs);
+ 		unshift @longout, "Unknown package status $status: $list";
+ 	};
+ }
+ 
+-my $shortout = $EXITCODE.": ".join(", ", @shortout);
++my $shortout = $EXITCODE.": ".join(" ", @shortout);
+ my $longout = join("\n", @longout);
+ my $perfout = "|".join(" ", @perfout);
+ 
diff --git a/debian/patches/series b/debian/patches/series
index ba57a02..db13372 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -37,3 +37,4 @@ dsa/status_directory
 dsa/check_packages-inifile
 dsa/epn
 
+dsa/check_packages_,_fix

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git



More information about the Pkg-nagios-changes mailing list