From: Heikki Levanto Date: Tue, 22 Mar 2011 12:10:12 +0000 (+0100) Subject: Details X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=fe107795d8c5c5dd4df63dee5c7aa9ba81d13a45;p=git-tools-moved-to-github.git Details Fixed Upd links for a few machines with nontrivial wiki pages. Lay out details Listing normal packages right --- diff --git a/aptcheck/aptcheck.pl b/aptcheck/aptcheck.pl index 71e00fe..ad72adb 100755 --- a/aptcheck/aptcheck.pl +++ b/aptcheck/aptcheck.pl @@ -106,6 +106,10 @@ for $hline ( split("\n",$hostlist) ) { $okhosts{$H} = 1; } my $updlink = $wikilink . ucfirst($H) . "Updates" . $year; + # Fix some pages that do not follow the convention. + # Mostly because the host names would not make proper WikiWords + $updlink =~ s/Bugzilla3Updates/BugzillaUpdates/; + $updlink =~ s/Opencontent-solrUpdates/OpenContentSolrUpdates/; $table .= " Upd"; $table .= "\n"; $table .= $det if $pkgs; @@ -133,7 +137,7 @@ print F "Packages\n"; if ( $sectot ) { print F "Security
" . scalar(keys(%sechosts)) . - " / " . scalar(keys(%secpkgs)) . " / $sectot \n" ; + " / " . scalar(keys(%secpkgs)) . " / $sectot \n" ; print F ""; for $HH ( sort(keys(%sechosts)) ) { print F "$HH "; @@ -148,7 +152,7 @@ if ( $sectot ) { } if ( $owntot ) { print F "Indexdata
" . scalar(keys(%ownhosts)) . - " / " . scalar(keys(%ownpkgs)) . " / $owntot \n" ; + " / " . scalar(keys(%ownpkgs)) . " / $owntot \n" ; print F ""; for $HH ( sort(keys(%ownhosts)) ) { print F "$HH "; @@ -159,21 +163,25 @@ if ( $owntot ) { print F "$PP "; } print F ""; - #print F "" . join(" ",sort(keys(%ownpkgs))) . " "; print F "\n"; } if ( $normtot ) { - print F "Indexdata
" . scalar(keys(%normhosts)) . - " / " . scalar(keys(%normpkgs)) . " / $normtot \n" ; + print F "Normal
" . scalar(keys(%normhosts)) . + " / " . scalar(keys(%normpkgs)) . " / $normtot \n" ; print F ""; for $HH ( sort(keys(%normhosts)) ) { print F "$HH "; } - print F "" . join(" ",sort(keys(%normpkgs))) . " "; + print F ""; + print F ""; + for $PP ( sort(keys(%normpkgs)) ) { + print F "$PP "; + } + print F ""; print F "\n"; } if ( %skiphosts ) { - print F "Skipped: " . scalar(keys(%skiphosts)) . "\n"; + print F "Skipped " . scalar(keys(%skiphosts)) . "\n"; print F ""; for $HH ( sort(keys(%skiphosts)) ) { print F "$HH "; @@ -181,7 +189,7 @@ if ( %skiphosts ) { print F "\n"; } if ( %okhosts ) { - print F "Ok: " . scalar(keys(%okhosts)) . "\n"; + print F "Ok " . scalar(keys(%okhosts)) . "\n"; print F ""; for $HH ( sort(keys(%okhosts)) ) { print F "$HH "; @@ -229,13 +237,16 @@ sub strdiff { my $x = shift; my $y = shift; print "strdiff: '$x' '$y' \n" if $debug>1; + if ( $x eq $y ) { + return "$x ??"; + } my $a = 0; while ( $a < length($y) && substr($x,$a,1) eq substr($y,$a,1) ) { $a++; } if ( $a == length($y) ) { - return "$y ???"; + return "$y ??"; } my $b = 1; while ( $b < length($y)-$a &&