We still default to having the mangling enabled. Arguably this is
wrong I'm am minimising the number of things that will be wrong for
the existing Cambridge instance.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Baud 115200
DebianNonfreeFirmware firmware-bnx2
+
+ HostnameSortSwapWords 1
);
$c{$_}='' foreach qw(
sub cmd_showflags () {
die if @ARGV;
+ my $sortkey = !$c{HostnameSortSwapWords} ? "hostname"
+ : "split_part(hostname, '-', 2), hostname";
my $hostsq= $dbh_tests->prepare(<<END);
- SELECT hostname FROM hostflags ORDER BY
- split_part(hostname, '-', 2), hostname
+ SELECT hostname FROM hostflags ORDER BY $sortkey
END
my $findq= $dbh_tests->prepare(<<END);
SELECT * FROM hostflags ORDER BY hostflag
} @{ $plan->{Events}{$reso} } ];
}
- my $colheadsortkey= sub { ($_[0] =~ m/-/ ? "$' $`" : "").$_[0]; };
+ my $colheadsortkey=
+ !$c{HostnameSortSwapWords} ? sub { $_[0]; }
+ : sub { ($_[0] =~ m/-/ ? "$' $`" : "").$_[0]; };
my @colheads = sort {
$colheadsortkey->($a) cmp $colheadsortkey->($b)
} keys %{ $plan->{Events} };