don't call pager in non-terminals for changelog
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 9 Sep 2014 11:52:32 +0000 (13:52 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 9 Sep 2014 11:52:32 +0000 (13:52 +0200)
commit22da5c135a74eee8ed998806136e25b8ed038bd0
tree2b142f8ad7fab6b1108070bf33b61abcbbf69d32
parent223ae57d468fdcac451209a095047a07a5698212
don't call pager in non-terminals for changelog

Most pagers are nice and default to running non-interactively if they
aren't connected to a terminal and we relied on that. On ci.debian.net
the configured pager is printing a header out of nowhere though, so if
we are printing to a non-terminal we call "cat" instead.

In the rework we also "remove" the dependency on sensible-utils in sofar
as we call some alternatives if calling the utils fail.

This seems to be the last problem preventing a "PASS" status on
ci.debian.net, so we close the associated bugreport.

Closes: 755040
apt-private/private-utils.cc
apt-private/private-utils.h
test/integration/test-apt-get-changelog