severity 610012 minor
tags 610012 + patch
thanks
Le vendredi 14 janvier 2011 à 21:58, d'après
Micah Anderson <[email protected]> :
> It would be nice, especially for things like puppet, to make apt-listchanges
> fallback to a non-interactive frontend when needed
I totally agree! I raise the severity from whishlist to minor, because
this actually breaks some real usecases.
Here is a proposal for a patch to force the 'text' frontend when stdout
is not a terminal. This patch was made against version 2.85.13+nmu1, as
found in sid.
--- apt-listchanges.orig 2014-10-13 01:35:58.000000000 +0200
+++ apt-listchanges 2014-11-26 15:50:21.186460996 +0100
@@ -65,6 +65,10 @@
if config.frontend == 'none':
sys.exit(0)
+ # Force quiet (loggable) mode if not running interactively
+ if not sys.stdout.isatty() and not config.quiet:
+ config.quiet = 1
+
# If apt is in quiet (loggable) mode, we should make our output
# loggable too
if config.quiet == 1:
--
Thomas Parmelan
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]