From f7535a3e90a312d10eb50178cfb28f04598460df Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Thu, 17 Mar 2011 13:19:32 +0100 Subject: [PATCH] Details Include hosts with a dash in their name Tweak lay out --- aptcheck/aptcheck.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aptcheck/aptcheck.pl b/aptcheck/aptcheck.pl index 9bac028..c5d17be 100755 --- a/aptcheck/aptcheck.pl +++ b/aptcheck/aptcheck.pl @@ -38,7 +38,7 @@ my $normtot = 0; my $table = "\n"; for $hline ( split("\n",$hostlist) ) { - next unless ( $hline =~ /\/([a-z0-9]+)\.cfg$/ ); + next unless ( $hline =~ /\/([a-z0-9-]+)\.cfg$/ ); my $H = $1; next if ($H =~ /^commands/ ); next if ($H =~ /^servicegroups/ ); @@ -126,11 +126,11 @@ print F "

Apt package status

\n"; # Summary table print F "
\n"; print F "" ; -print F "\n" ; -print F "\n" ; -print F "" . "\n"; print F "\n"; -- 1.7.10.4
 Security: " . scalar(keys(%sechosts)) . +print F "Security
" . scalar(keys(%sechosts)) . " / " . scalar(keys(%secpkgs)) . " / $sectot
Indexdata: " . scalar(keys(%ownhosts)) . +print F "Indexdata
" . scalar(keys(%ownhosts)) . " / " . scalar(keys(%ownpkgs)) . " / $owntot
Normal: " . scalar(keys(%normhosts)) . +print F "Normal
" . scalar(keys(%normhosts)) . " / " . scalar(keys(%normpkgs)) . " / $normtot
Hosts